How to use reading-time-estimator - 1 common examples

To help you get started, we’ve selected a few reading-time-estimator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github QardsJs / qards / src / utils / helpers.ts View on Github external
export function readingTime(markdown: string): rTimeResponse {
	const text = markdown.split('\n').filter(
		line => !lineRepresentsEncodedComponent(line)).join('\n');
	//	make sure there's at least one latin char in your string otherwise we get
	//	a funny error from our estimator which complains with a `Data provided is invalid`
	return rTime(`a${text}`);
}

reading-time-estimator

A medium's like reading time estimator with internationalization support

MIT
Latest version published 9 months ago

Package Health Score

68 / 100
Full package analysis

Popular reading-time-estimator functions