draft-read-time

0.1.0 • Public • Published

Draft ReadTime

Get read time from a Draft.js content state, based on Medium algorithm.

Installation

npm install draft-read-time

Usage

Simply import Draft ReadTime:

// ES5
var readTime require('draft-read-time');

// ES6
import readTime from 'draft-read-time';

Get read time by passing a Draft.JS content state to readTime function:

readTime(contentState);

Contributing

Pull requests are welcomed!

Readme

Keywords

none

Package Sidebar

Install

npm i draft-read-time

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.58 kB

Total Files

4

Last publish

Collaborators

  • damien.monni