Skip to content

totolicious/reading-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#reading-time

This is a simple javascript function that estimates the reading duration of a string.

It is useful to set timeouts for various messages that appear in temporary UI elements such as popups and hints.

#Examples

var text = 'This is a simple javascript function that estimates the read duration of a string.';

alert('It takes ' + readingTime(text)) + 's to read this text:\n'+text);

See the examples folder for more examples

About

Estimates the reading time of a paragraph and returns a timeout in miliseconds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published