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

reading-time

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reading-time

Medium's like reading time estimation.

  • 1.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
464K
increased by1.33%
Maintainers
1
Weekly downloads
 
Created

What is reading-time?

The 'reading-time' npm package is designed to estimate the time it will take to read a given text. It is useful for applications that want to provide users with an idea of how long it will take to read an article, blog post, or any other text content.

What are reading-time's main functionalities?

Estimate Reading Time

This feature allows you to estimate the reading time of a given text. The 'readingTime' function takes a string as input and returns an object containing the estimated reading time in minutes, the number of words, and other relevant statistics.

const readingTime = require('reading-time');
const stats = readingTime('This is a sample text to estimate reading time.');
console.log(stats);

Custom Words Per Minute

This feature allows you to customize the words per minute (WPM) rate used to estimate the reading time. By default, the package uses 200 WPM, but you can change it to any value that suits your needs.

const readingTime = require('reading-time');
const options = { wordsPerMinute: 300 };
const stats = readingTime('This is a sample text to estimate reading time.', options);
console.log(stats);

Other packages similar to reading-time

Keywords

FAQs

Package last updated on 10 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc