
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
wpm-calculator-react
Advanced tools
A React component for calculating estimated reading time for a given text.
You can install the wpm-calculator-react package via npm or yarn:
npm i wpm-calculator-react
# OR
yarn add wpm-calculator-react
Import the wpm-calculator-react component and use it in your React application:
import React from "react";
import Wpm from "wpm-calculator-react";
function App() {
const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit...";
return (
<div>
<h1>My Blog Post</h1>
<Wpm text={text} />
<p>{text}</p>
</div>
);
}
export default App;
Add text after of before Wpm
<div>
<Wpm text={text} /> min read
</div>
text (required): The text content for which you want to calculate the reading time.
className (optional): An optional CSS class to style the component.
you can add your own className and style it in your css file
<Wpm text={text} className="your-class_name"/>
or wrap with your own div and style it
<div className="your-class_name">
<Wpm text={text} />
</div>
or add your own wpm
<Wpm text={text} wpm={250}/>
This project is licensed under the MIT License. See the LICENSE file for details.
Created by Artsiom Pchaliankou.
If you have any questions or suggestions, please feel free to open an issue or contact me at pchelenkovartem@gmail.com.
FAQs
A React component for calculating reading time
The npm package wpm-calculator-react receives a total of 2 weekly downloads. As such, wpm-calculator-react popularity was classified as not popular.
We found that wpm-calculator-react 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.