https://github.com/tiaanduplessis/jormat-formatters
Basic formatters for jormat
https://github.com/tiaanduplessis/jormat-formatters
formatters jormat
Last synced: 11 months ago
JSON representation
Basic formatters for jormat
- Host: GitHub
- URL: https://github.com/tiaanduplessis/jormat-formatters
- Owner: tiaanduplessis
- License: mit
- Created: 2017-09-09T13:12:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T22:46:19.000Z (about 7 years ago)
- Last Synced: 2025-07-24T17:31:06.803Z (11 months ago)
- Topics: formatters, jormat
- Language: JavaScript
- Size: 270 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
jormat-formatters
Basic formatters for jormat
Table of Contents
Table of Contents
## About
[](https://greenkeeper.io/)
Some basic formatters for [jormat](https://github.com/tiaanduplessis/jormat).
## Install
```sh
$ npm install jormat-formatters
# OR
$ yarn add jormat-formatters
```
## Usage
```js
const formatters = require('jormat-formatters')
console.log(formatters)
// { minutes:
// [ [ 'minutes', 60 ],
// [ 'hours', 24 ],
// [ 'days', 365 ],
// [ 'years' ] ],
// milliseconds:
// [ [ 'milliseconds', 1000 ],
// [ 'seconds', 60 ],
// [ 'minutes', 60 ],
// [ 'hours', 24 ],
// [ 'days', 365 ],
// [ 'years' ] ],
// seconds:
// [ [ 'seconds', 60 ],
// [ 'minutes', 60 ],
// [ 'hours', 24 ],
// [ 'days', 365 ],
// [ 'years' ] ],
// bytes:
// [ [ 'bytes', 1024 ],
// [ 'kilobytes', 1024 ],
// [ 'megabytes', 1024 ],
// [ 'gigabytes', 1024 ],
// [ 'terabytes' ] ],
// kilobytes:
// [ [ 'kilobytes', 1024 ],
// [ 'megabytes', 1024 ],
// [ 'gigabytes', 1024 ],
// [ 'terabytes' ] ] }
```
## Contributing
Contributions are welcome!
1. Fork it.
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
Or open up [a issue](https://github.com/tiaanduplessis/jormat-formatters/issues).
## License
Licensed under the MIT License.