
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.
react-internet-meter
Advanced tools
Notify on internet speed changes
In later version default image will be removed. It is recommended to give address of image on your server/s. As it will give you more usefull and reliable values.

npm install --save react-internet-meter
import React from 'react'
import { ReactInternetSpeedMeter } from 'react-internet-meter'
import 'react-internet-speed-meter/dist/index.css'
const App = () => {
<ReactInternetSpeedMeter
txtSubHeading="Internet is too slow"
outputType="alert"
customClassName={null}
txtMainHeading="Opps..."
pingInterval={4000} // milliseconds
thresholdUnit='megabyte' // "byte" , "kilobyte", "megabyte"
threshold={100}
imageUrl="https://res.cloudinary.com/dcwxsms2l/image/upload/v1610376487/pexels-ivan-samkov-6291574_bzqgps.jpg"
downloadSize="1781287" //bytes
callbackFunctionOnNetworkDown={(speed)=>console.log(`Internet speed is down ${speed}`)}
callbackFunctionOnNetworkTest={(speed)=>setwifiSpeed(speed)}
/>
}
export default App
| Parameter | Type | Options |
|---|---|---|
| txtSubHeading | string | any string you want |
| outputType | string | "alert"/"modal"/"empty" |
| customClassName | string | css class you want |
| txtMainHeading | string | any string you want |
| pingInterval | integer | time in milliseconds |
| thresholdUnit | string | "byte"/"kilobyte"/"megabyte" |
| threshold | Integer | Minimum required value |
| callbackFunctionOnNetworkDown | function | Function that run on network down |
| callbackFunctionOnNetworkTest | function | Function that run after network check |
| imageUrl | string | dummy image url |
| callbackFunctionOnNetworkTest | string | image size |
MIT © rajanlagah
alert-when-internet-speed-go-below-threshold
Dont forget to give star to this repo on github...
FAQs
Notify on internet speed changes
The npm package react-internet-meter receives a total of 1,466 weekly downloads. As such, react-internet-meter popularity was classified as popular.
We found that react-internet-meter 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.