New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-speedy-reader

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-speedy-reader

Speed reader component for React, which streams the text in chunks. Enabling the user to read long passages of text with ease.

latest
Source
npmnpm
Version
1.0.15
Version published
Maintainers
1
Created
Source

React Speedy Reader

Speed reader component for React, which streams the text in chunks. Enabling the user to read long passages of text with ease.

Build Status codecov npm version

Getting Started

Prerequisites

  • Node.js v7.6+

Installing

npm install --save react-speedy-reader

or

yarn add react-speedy-reader

Usage

import React from 'react';
import { render } from 'react-dom';
import SpeedyReader from 'react-speedy-reader';

render(
  (
    <div className="demo">
      <SpeedyReader
        autoPlay
        inputText={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' +
          'Fusce dignissim urna turpis, sed interdum massa tincidunt eget. ' +
          'Duis leo nisl, eleifend ac turpis vitae, cursus sagittis leo. ' +
          'Nullam sit amet.'}
      />
    </div>
  ),
  document.getElementById('app')
);

Props

SpeedyReader

NameTypeDefaultRequiredDescription
autoPlayboolfalsefalseIndicates whether the reader starts immediately
inputTextstringtrueInput text to be sped read
onFinishfunctionundefinedfalseCallback used when finished reading passage
speednumber250falseThe speed of the reader in words per minute (WPM)
wordChunknumber1falseThe number of words to be displayed per update

Methods

play()

Pauses playing of the words for the speed reading.

pause()

Resumes playing of the words for the speed reading.

reset(autoPlay?)

Resets the speedy reader to the initial state.

Documentation

Please read JSDocs for more information.

Built With

  • React - A JavaScript library for building user interfaces

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

fast reading

FAQs

Package last updated on 06 Sep 2018

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