@technoapple/node-reading
TypeScript icon, indicating that this package has built-in type declarations

1.1.9 • Public • Published

node-reading

TypeScript Library to providing functions to get estimated times of the article, and provide Speak function to read the content.

Features

  • provide article reading time.
  • auto speak the content

Get Started

npx @keke78ui9/node-reading

or

npm install @keke78ui9/node-reading

Basic Usage

Get Reading Time by Content

import { getTime } from '@keke78ui9/node-reading';

const readingTime = getTime({
    content: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.',
  });

Get Reading Time by HTML String

import { getTime } from '@keke78ui9/node-reading';

const readingTime = getTime({
    html: '<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>',
  });

Get Reading Time by Selector

import { getTime } from '@keke78ui9/node-reading';

const readingTime = getTime({
    selector: 'article',
  });

Speak by Content

import { speak } from '@keke78ui9/node-reading';

speak({
    content: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.',
  });

Speak by Content from HTML String

import { speak } from '@keke78ui9/node-reading';

speak({
    html: '<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>',
  });

Speak by Content from Selector

import { speak } from '@keke78ui9/node-reading';

speak({
    selector: 'article',
  });

Development

run test

npm run test

Package Sidebar

Install

npm i @technoapple/node-reading

Weekly Downloads

7

Version

1.1.9

License

ISC

Unpacked Size

205 kB

Total Files

50

Last publish

Collaborators

  • keke78ui9