An open API service indexing awesome lists of open source software.

https://github.com/rtasalem/js-utils

A collection of JavaScript utilities.
https://github.com/rtasalem/js-utils

code-snippets javascript utilities

Last synced: 7 months ago
JSON representation

A collection of JavaScript utilities.

Awesome Lists containing this project

README

        

# JS Utils
A collection of JavaScript utilities.
## Contents
### 1. [Date](https://github.com/rtasalem/js-utils/blob/main/date)
- [convertCosmosTimestamp](https://github.com/rtasalem/js-utils/blob/main/date/convert-cosmos-timestamp.js): for converting the Unix timestamp automatically generated by Azure Cosmos DB (`_ts`) and converting it into a readable UK format e.g. `dd/mm/yyyy, hh:mm:ss`.
- [formatDateUk](https://github.com/rtasalem/js-utils/blob/main/date/format-date-uk.js): formats an existing date string by splitting apart the day, month, and year and rearranging into the UK date format.
- [generateTimestamp](https://github.com/rtasalem/js-utils/blob/main/date/generate-timestamp.js): for generating a timestamp in UK format e.g. `dd/mm/yyyy, hh:mm:ss`.