1.0.1 • Published 6 years ago

jormat v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

jormat

Just a generic number/string formatter

npm package version npm downloads Standard Prettier code formatting Travis ci build status Project license Make a pull request Greenkeeper badge

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!

  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.

License

Licensed under the MIT License.