read_count
v1.1.4
Published
Get Medium like estimated read time of a string. Suitable for estimating the read time of a post.
Downloads
17
Maintainers
Readme
read_count
Easily integrate estimated reading time in your JavaScript apps.
Quick Start
Installation
npm i read_count
Usage
- Use
read_count
with ES6 import syntax
import readCount from 'read_count'
console.log(readCount("Lorem ipsum, dolor sit amet consectetur adipisicing elit.")) // ⇨ '4 seconds'
- Use
read_count
with CommonJS syntax
let readCount = require('read_count')
console.log(readCount("Lorem ipsum, dolor sit amet consectetur adipisicing elit.")) // ⇨ '4 seconds'
Author
License
MIT LICENSE