iamtraction / read-time

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

Home Page:https://npmjs.com/@iamtraction/read-time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);
Parameter Type Optional Default Description
text String No - Text for which you want to estimate the read time.
options Object Yes - Options for read time estimation.
options.wpm Number Yes 250 Reading speed in words per minute.

Returns: string

About

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

https://npmjs.com/@iamtraction/read-time

License:Mozilla Public License 2.0


Languages

Language:JavaScript 91.6%Language:TypeScript 8.4%