1.0.8 • Published 2 years ago

@anzerr/read.estimate v1.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

Intro

GitHub Actions status | linter GitHub Actions status | publish GitHub Actions status | test

Medium's like reading time estimation.

Install

npm install --save git+https://git@github.com/anzerr/read.estimate.git
npm install --save @anzerr/read.estimate

Example

const estimate = require('read.estimate'),
	fs = require('fs');

const out = estimate(fs.readFileSync('./README.md').toString(), {
	strip: true,
	wpm: 225, // WORDS_PER_MIN
	ipm: 6, // IMAGE_PER_MIN
	scale: 1,
	pad: 0.25
});

console.log(out);
/*
{
	count: { words: 84, images: 3 },
	time: { words: 0.37333333333333335, images: 0.5 },
	minutes: 0.8733333333333333,
	text: '1 minutes'
}
*/
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago