untemps / read-per-minute Goto Github PK
View Code? Open in Web Editor NEWClass to parse a string and return an estimated reading time based on a lang rate
License: MIT License
Class to parse a string and return an estimated reading time based on a lang rate
License: MIT License
ReadPerMinute.parse function returns {time: 1, words: 1}
if the string passed in is null or empty so far.
We'd like the values to be 0
in this case.
To extend @webJose's work in this PR, it can be useful to add the ability to override the default rate values for a particular instance.
In this case, we either add an argument in the constructor, or we add a setRates
method (and a reset one), or both.
We should be careful with the type and the format of the constructor or method argument, especially the default value management (e.g. the default
value does not exist among the custom values).
CAUTION: This will result in a breaking change. To check the existence of the lang set, we need to make the isLangExist
dynamic
When running GitHub Actions displays a warning message :
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
We should fix it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.