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

calculate-readtime

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calculate-readtime

⏰ Calculates the approximate reading time for the paragraph you specify.

0.0.3
latest
Source
npm
Version published
Weekly downloads
5
-73.68%
Maintainers
1
Weekly downloads
 
Created
Source

✨ Read Time Calculator

Customizable, easy-to-use, zero-dependency read time calculator.

Typedefinitions are built-in

build supportServer totalDownloads weeklyDownloads version stars license

🐮 Installation

  • Using NPM: npm install calculate-readtime --save
  • Using Yarn: yarn add calculate-readtime

🧶 Usage

// Simple usage
const { calculate } = require("calculate-readtime");

const myText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit.";

calculate(myText); // => returns "less than a minute"

/* -------------------------------------------------------------------- */

// Advanced usage
const { calculate } = require("calculate-readtime");

const myText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit.";
const options = {
	singular: "dakika",
	plural: "dakika",
	lessThanOne: "bir dakikadan kısa",
	wpm: 200,
};

calculate(myText, options); // => returns "bir dakikadan kısa"

🎈 Options

NameTypeRequiredDefault
wpmNumber200
lessThanOneStringless than a minute
singularStringminute
pluralStringminutes

🧦 Contributing

Feel free to use GitHub's features.

FAQs

Package last updated on 25 Aug 2022

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