Gathering detailed insights and metrics for reading-time-estimator
Gathering detailed insights and metrics for reading-time-estimator
Gathering detailed insights and metrics for reading-time-estimator
Gathering detailed insights and metrics for reading-time-estimator
npm install reading-time-estimator
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
40 Stars
1,732 Commits
13 Forks
4 Watching
4 Branches
10 Contributors
Updated on 28 Nov 2024
TypeScript (80.58%)
JavaScript (19.42%)
Cumulative downloads
Total Downloads
Last day
4.1%
580
Compared to previous day
Last week
35.6%
3,763
Compared to previous week
Last month
6.1%
13,915
Compared to previous month
Last year
77.4%
148,320
Compared to previous year
19
A medium's like reading time estimator with internationalization support.
Reading Time Estimator was created to provide an estimate of how long to read an article or blog as seen on medium.
With NPM
1 npm install reading-time-estimator
or Yarn
1 yarn add reading-time-estimator
The api is fairly simple. Here are the types definition for this module.
It is a simple function that takes the data as a required argument with the words per minute and locale as optional arguments.
Per default the locale is set to english en
.
Per default the word per minute is set to 300
.
At the moment there is only 12 supported locales: en
, fr
, es
, pt-br
, cn
, ja
, de
, tr
, ro
, bn
, sk
and cs
.
Try it live here
1import { readingTime } from 'reading-time-estimator' 2 3const text = 'some text to parse' 4 5// default options 6const result = readingTime(text, 10) 7 8// output: 9// { 10// minutes: 4, 11// words: 43, 12// text: `4 min read` 13// } 14 15// with french locale 16const result = readingTime(text, 10, 'fr') 17 18// output: 19// { 20// minutes: 4, 21// words: 43, 22// text: `4 min de lecture` 23// }
This package does not offer internationalization support which was a must for me.
Thanks goes to these wonderful people (emoji key):
Lucien Bénié 💻 📖 | Victor Sierra 💻 | ZhangC 💻 | Rich11 💻 📖 | Matheus Oliveira 💻 | Can Güven 💻 | Alexander Strutz 💻 |
凝结尾迹 💻 | Muhammad Faisal Amin 💻 | Oliver Groma 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
SAST tool is run on all commits
Details
Reason
6 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
Project has not signed or included provenance with any releases.
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More