Socket
Book a DemoInstallSign in
Socket

ulka-plugin-reading-time

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ulka-plugin-reading-time

Plugin for ulka static site genrator to calculate reading time of markdown data.

latest
Source
npmnpm
Version
1.1.5
Version published
Maintainers
1
Created
Source

ulka-plugin-reading-time

Adds a medium-like reading time estimate to your ulka posts. Powered by reading time.

Installation

npm install ulka-plugin-reading-time

Add ulka-plugin-reading-time to plugins array in ulka-config.js

// ulka-config.js
module.exports = {
    ...
    plugins: [
    ...
    "ulka-plugin-reading-time",
    ],
}

Usage

After the setup, readingTime key will be available in fields.

// values.fields.readingTime
{
    text: '1 min read',
    minutes: 1,
    time: 60000,
    words: 200
}

Customization

To customize ulka-plugin-reading-time, you need to pass plugin as object to plugins array.

// ulka-config.js
module.exports = {
    ...
    plugins: [
        ...
        {
            resolve: "ulka-plugin-reading-time",
            options: {
                // options accepted by reading-time (https://github.com/ngryman/reading-time)
            }
        },
    ],
}

FAQs

Package last updated on 20 Oct 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.