Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fwd/time
Natural Time Conversion
https://github.com/fwd/time
api javascript millisecond-conversion milliseconds nodejs nodejs-framework serverless time
Last synced: 4 days ago
JSON representation
Natural Time Conversion
- Host: GitHub
- URL: https://github.com/fwd/time
- Owner: fwd
- Created: 2020-08-25T18:17:14.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T13:25:13.000Z (over 1 year ago)
- Last Synced: 2024-10-16T09:05:39.765Z (29 days ago)
- Topics: api, javascript, millisecond-conversion, milliseconds, nodejs, nodejs-framework, serverless, time
- Language: JavaScript
- Homepage:
- Size: 2.83 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
![Cover](https://raw.githubusercontent.com/fwd/time/master/.github/cover.png)
@fwd/time 💾
> A NodeJS package to simplify milliseconds.
## Install
```sh
npm install fwd/time
```## Usage
```js
const time = require('@fwd/time')
time(1, 'second') // 1000 ms
time(5, 'hours') // 18000000 ms
```
## Parameters
```js
time(integer, timeInterval)
````
## Available Intervals
- second(s)
- minute(s)
- hour(s)
- day(s)
- month(s)
- year(s)## 👤 Author
[twitter.com/@nano2dev](https://twitter.com/nano2dev)
## 🤝 Contributing
Give a ⭐️ if this project helped you!
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/fwd/time/issues).## 📝 License
MIT License