Skip to content

Commit

Permalink
Change wordy numbers sections in README
Browse files Browse the repository at this point in the history
  • Loading branch information
faridnsh committed Apr 3, 2019
1 parent 05faf9e commit 48a0666
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,7 @@ Human Interval supports the following units

### Wordy Numbers

Human Interval supports numbers up to ten being written out in English. If you
want to extend it, you can do so by adding more keys to the language map.
Alternatively you could add support for alternative languages.

```js
const humanInterval = require('human-interval');
humanInterval.languageMap['one-hundred'] = 100

// Adds support for the following:
humanInterval('one-hundred and fifty seconds') // returns 150000
```
Human Interval supports English numbers being written out in English by using [node-numbered](https://github.com/blakeembrey/node-numbered).

# License
[The MIT License](LICENSE.md)

0 comments on commit 48a0666

Please sign in to comment.