Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hswolff/read-time
Calculate how long it will take you to read some text.
https://github.com/hswolff/read-time
Last synced: 11 days ago
JSON representation
Calculate how long it will take you to read some text.
- Host: GitHub
- URL: https://github.com/hswolff/read-time
- Owner: hswolff
- License: mit
- Created: 2014-01-10T04:56:49.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-11T02:34:33.000Z (almost 11 years ago)
- Last Synced: 2024-09-21T12:59:22.072Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/read-time
- Size: 125 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
read-time
===========Calculate how long it will take you to read some text.
Usage
=====```
var readTime = require('read-time');var input = 'Hello this is some text';
readtime(input); // 'Less than a minute';
```Based on the average [word per minute](http://en.wikipedia.org/wiki/Words_per_minute) that an adult reads - 200 WPM.
The amount of words in the input is calculated and uses WPM to divide and calculate the length of time it'll take
to read the given input.What you will see using this module.
Given: 200 words
Expect: **1 minute**
Given: 300 words
Expect: **1 minute 30 seconds**
Given: 776 words
Expect: **3 minutes 52 seconds**
Changelog
=========### 1.0.0
Initial release.License
=======MIT