Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
fast-reader
Advanced tools
A simple plugin to allow fast reading text inside HTML elements showing one word at a time.
A simple plugin to allow fast reading text inside HTML elements showing one word at a time.
http://frikinside.github.io/jquery.fast-reader-demo/
Include script after the include of jQuery library
<script src="/path/to/jquery.fast-reader.min.js"></script>
Include the plugin css or a custom css for player styles
<link href='/path/to/jquery.fast-reader.min.css' rel='stylesheet' type='text/css'>
$("selector").fastreader();
<button id="start_fastreader">Start Fastreader</button>
<div id="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a efficitur est. Pellentesque et erat tempus, tristique ex at, interdum purus. Proin tempor sodales luctus. Donec interdum ullamcorper magna, ut hendrerit lorem molestie vel. Phasellus eget lectus vehicula, faucibus nulla a, rutrum quam. Nunc ut lobortis sem. Aliquam efficitur nec sapien a semper. Etiam vel mollis elit, at condimentum ante. Mauris ultricies, eros sit amet commodo ornare, ligula turpis feugiat lacus, ultrices pellentesque enim diam nec justo.</div>
$(document).ready(function(){
$("#start_fastreader").click(function(){
$("#text").fastreader();
})
});
$.fn.fastreader.defaults = {
color: "black", // Color of the text
useFontAwesome: false, // Use fontawesome for the controls
autoplay: false, // Play the text when fastreader ready
readyText: "Ready", // Text shown when the fastreader is prepared to play
maxPivotLetterPos: 5, // Maximum position of the pivot leter (center of sight)
wpm: 300 // Words Per Minute
};
$("#text").fastreader(
{
color: "blue",
useFontAwesome: true,
autoplay: true,
readyText: "Let's go!",
wpm: 100
}
);
$("#text").fastreader("methodName"); // Generic example
$("#text").fastreader("pause"); // Player paused
$("#text").fastreader("close"); // Player closed
$("#text").fastreader("destroy"); // Player destroyed
This plugin needs a specific type of font to work properly. In order to fix the pivot leter always in the center of the sight we need a font wich every letter take the same width. Any monospaced font has this property. In this case the default css is using 'Droid Sans Mono' wich i take it from google fonts.
<link href="https://fonts.googleapis.com/css?family=Droid+Sans+Mono" rel="stylesheet" type="text/css">
There are other insteresting fonts for the job, as an example, here are few of them:
FAQs
A simple plugin to allow fast reading text inside HTML elements showing one word at a time.
The npm package fast-reader receives a total of 3 weekly downloads. As such, fast-reader popularity was classified as not popular.
We found that fast-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.