All Projects β†’ ngryman β†’ Reading Time

ngryman / Reading Time

Licence: mit
πŸ“š Medium's like reading time estimation.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Reading Time

medium-to-wordpress-migration
Script to export medium blogs to wordpress rss xml format
Stars: ✭ 15 (-97.99%)
Mutual labels:  medium
Avenging
MVP pattern example on Android: no Dagger or RxJava example
Stars: ✭ 279 (-62.6%)
Mutual labels:  medium
Gatsby Starter Mate
An accessible and fast portfolio starter for Gatsby integrated with Contentful CMS.
Stars: ✭ 472 (-36.73%)
Mutual labels:  medium
medium-sdk-php
Open source SDK for integrating Medium's OAuth2 API into your PHP application.
Stars: ✭ 79 (-89.41%)
Mutual labels:  medium
integrate-io
Cross-Post your blogs between dev.to, Medium and Hashnode πŸ”€
Stars: ✭ 21 (-97.18%)
Mutual labels:  medium
Medium Unlimited
A browser extension to read medium.com articles for free without membership.
Stars: ✭ 4,482 (+500.8%)
Mutual labels:  medium
medium-unlocker
Read Medium content without limit!
Stars: ✭ 127 (-82.98%)
Mutual labels:  medium
Mmra
Make Medium Readable Again β€” a browser extension
Stars: ✭ 625 (-16.22%)
Mutual labels:  medium
Smalleditor
Small WYSIWYG editor with delta save, inspired by Medium
Stars: ✭ 257 (-65.55%)
Mutual labels:  medium
Booksearch
A digital BookShelf for your reading progress.
Stars: ✭ 441 (-40.88%)
Mutual labels:  medium
fast-image-zoom
🏞 Fast image zoom on click as seen on popular publishing platform
Stars: ✭ 21 (-97.18%)
Mutual labels:  medium
medium-2-md
A CLI tool that converts exported Medium posts (html) to Jekyll/Hugo compatible markdown with frontΒ matter.
Stars: ✭ 113 (-84.85%)
Mutual labels:  medium
Tgram
typegram: open source publishing platform
Stars: ✭ 340 (-54.42%)
Mutual labels:  medium
zoom.ts
A lightweight TypeScript library for image zooming, as seen on Medium.
Stars: ✭ 44 (-94.1%)
Mutual labels:  medium
Mediumclap Android
πŸ‘ The Medium's Clapping Effect developed in Android
Stars: ✭ 485 (-34.99%)
Mutual labels:  medium
bypass-paywalls-chrome-clean-magnolia1234
Bypass Paywalls Chrome Clean (GitLab proxy)
Stars: ✭ 32 (-95.71%)
Mutual labels:  medium
Medium To Own Blog
Switch from Medium to your own blog in a few minutes
Stars: ✭ 3,017 (+304.42%)
Mutual labels:  medium
Stories
Medium clone built with Ruby on Rails
Stars: ✭ 688 (-7.77%)
Mutual labels:  medium
Mediumship
πŸ“š Read all Medium stories for free!
Stars: ✭ 513 (-31.23%)
Mutual labels:  medium
Applause Button
A zero-configuration medium-style button for adding applause / claps / kudos to web pages and blog posts
Stars: ✭ 343 (-54.02%)
Mutual labels:  medium

reading-time

NPM Build Status


Medium's like reading time estimation.

reading-time helps you estimate how long an article will take to read. It works perfectly with plain text, but also with markdown or html.

Note that it's focused on performance and simplicity, so the number of words it will extract from other formats than plain text can vary a little. But this is an estimation right?

Installation

npm install reading-time --production

Usage

Classic

const readingTime = require('reading-time');

const stats = readingTime(text);
// ->
// stats: {
//   text: '1 min read',
//   minutes: 1,
//   time: 60000,
//   words: 200
// }

Stream

const readingTime = require('reading-time/stream');

fs.createReadStream('foo')
  .pipe(readingTime)
  .on('data', stats => {
    // ...
  });

API

readingTime(text, options?)

  • text: the text to analyze
  • options (optional)
    • options.wordsPerMinute: (optional) the words per minute an average reader can read (default: 200)
    • options.wordBound: (optional) a function that returns a boolean value depending on if a character is considered as a word bound (default: spaces, new lines and tabulations)

Other projects

  • Fauda: configuration made simple.
  • Badge Size: Displays the size of a given file in your repository.
  • Commitizen Emoji: Commitizen adapter formatting commit messages using emojis.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].