Basic formatters for jormat
Built with ❤︎ by tiaanduplessis and contributors
Some basic formatters for jormat.
$ npm install jormat-formatters
# OR
$ yarn add jormat-formatters
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' ] ] }
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
Licensed under the MIT License.