nextein-plugin-reading-time

1.0.0 • Public • Published

nextein-plugin-reading-time

Add a readingTime to your post.data based on your post content.

Install

npm i nextein-plugin-reading-time

Usage

Edit your next.config.js file and add it to the plugins list:

// next.config.js
const { withNextein } = require('nextein/config')
 
 
module.exports = withNextein({
  nextein: function(config) {
   
    config.plugins.push({
      name: 'nextein-plugin-reading-time',
      options: {
        wordsPerMinute: 130
      }
    })
 
   return config
 },
  // ...
}))
 

Configuration

The options object can define the following properties:

  • wordsPerMinute: {Integer}. Default: 130. Calculate the words per minute ratio.

Readme

Keywords

Package Sidebar

Install

npm i nextein-plugin-reading-time

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.1 kB

Total Files

5

Last publish

Collaborators

  • elmasse