1.0.1 • Published 6 years ago
jormat v1.0.1
jormat
Just a generic number/string formatter
About
A generic string and number formatter based on normat.
Install
$ npm install jormat
# OR
$ yarn add jormat
Usage
const jormat = require('jormat')
const {minutes} = require('jormat-formatters')
const { format, parse } = jormat(minutes)
console.log(format(10080)) // 7 days
console.log(parse('10 days')) // 14400
Contributing
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.
License
Licensed under the MIT License.