
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-simple-scratch-card-v1
Advanced tools
npm install simple-scratch-card --save
It is a modified version of the lesca-react-scratch-card. I need some extra features in that. So I created a simple-scratch-card. And a lot of thanks to lesca-react-scratch-card 🥳🎉
Use react v18+
.
Import the package
import ScratchCard from 'simple-scratch-card';
import Image from './img/cover.jpg';
In the compnenet
const component = () => {
return (
<ScratchCard
cover={Image}
percent={50}
width={100}
height={100}
onComplete={() => {
// Some code here
}}
>
Your card content
</ScratchCard>
);
};
Props | description | default |
---|---|---|
cover:string | scratch card cover image | |
width:number | card width | 320 |
height:number | card height | 240 |
percent:number | how much percent to complete it? | 50 |
onComplete:function | callback when complete |
FAQs
Simple scratch card
The npm package react-simple-scratch-card-v1 receives a total of 0 weekly downloads. As such, react-simple-scratch-card-v1 popularity was classified as not popular.
We found that react-simple-scratch-card-v1 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.