
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-flashlight
Advanced tools
<ReactFlashlight>
A <ReactFlashlight>
adds a flashlight effect to an element.
$ npm install react-flashlight
The default export is <ReactFlashlight>
.
To use it:
import { ReactFlashlight } from 'react-flashlight';
import React from "react";
import { ReactFlashlight } from "react-flashlight";
import logo from "./logo.svg";
import './App.css';
const style = {
backgroundImage: `url(${logo})`,
height: "90vh",
width: "90vw",
}
function App() {
return (
<div className="App">
<header className="App-header">
<ReactFlashlight>
<div style={style}>
Hello, I am a child element.
</div>
</ReactFlashlight>
</header>
</div>
);
}
export default App;
<ReactFlashlight>
Props://
// Props:
//
{
// If true, the flashlight effect will be active (by default)
enabled
// Show or hide the cursor, defaults to false
showCursor
// Set the light size, defaults to 150px
size
// Set initial position, defaults to 0, 0
initialPosition
// Move programmatically the light to a location {x: value, y: value}
moveTo
// The speed of the movement transition, defaults to 1000ms
speed
// Let the user control the light with the mouse, defaults to true
enableMouse
// The "room" darkness (opacity), defaults to 0.9
darkness
}
MIT
FAQs
A flashlight effect for React
The npm package react-flashlight receives a total of 14 weekly downloads. As such, react-flashlight popularity was classified as not popular.
We found that react-flashlight 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.