utils-tna
v1.2.10
Published
This is the repository to make some utils functions, re-libraries, helpers, constants, types, etc...
Downloads
801
Maintainers
Readme
Table of Contents
Installation
npm install utils-tna
or using Yarn:
yarn add utils-tna
or using pnpm:
pnpm add utils-tna
Usage
import { formatQueryString, convertObjectKeysToSnakeCase } from 'utils-tna'
Functions
convertObjectKeysToCamelCase
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for convertObjectKeysToCamelCase
convertObjectKeysToSnakeCase
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for convertObjectKeysToSnakeCase
formatDate
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for formatDate
isToday
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for isToday
isPast
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for isPast
isFuture
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for isFuture
dateDifference
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for dateDifference
addDays
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for addDays
subtractDays
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for subtractDays
startOfWeek
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for startOfWeek
endOfWeek
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for endOfWeek
startOfMonth
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for startOfMonth
endOfMonth
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for endOfMonth
formatQueryString
Formats a base URL with path parameters and query parameters.
Example:
// Usage example for formatQueryString
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
MIT