New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
r

@iamtraction/read-time

Calculate the time it'd take to read any text.

1.0.0
latest
64

Supply Chain Security

100

Vulnerability

72

Quality

76

Maintenance

81

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version published
Weekly downloads
1
-92.86%
Maintainers
1
Weekly downloads
 
Created
Issues
0

Read Time

A Node.JS library to estimate the time it will take to read a given text.

GitHub release Dependencies Known Vulnerabilities license Node.js CI Node.js Package

Installation

# Stable version, from npm repository
npm install --save @iamtraction/read-time

# Latest version, from GitHub repository
npm install --save iamtraction/read-time

Usage

// If you've installed from npm
const readTime = require("@iamtraction/read-time");

// If you've installed from GitHub
const readTime = require("read-time");
Method: calculate(text, options)
readTime.calculate(text, options);
ParameterTypeOptionalDefaultDescription
textStringNo-Text for which you want to estimate the read time.
optionsObjectYes-Options for read time estimation.
options.wpmNumberYes250Reading speed in words per minute.
Returns: string

FAQs

Package last updated on 04 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts