Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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