Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A tiny Color Picker for React [ Demo ]
$ npm i --save coloreact
import ColorPicker from 'coloreact';
// ...
return (
<ColorPicker
opacity={true}
color={this.state.currentColor}
onChange={this.showColorNow}
onComplete={this.showLastColor} />
);
// ...
It is possible to create your own ColorPicker using Map
and Slider
s.
import { Map, Slider } from 'coloreact';
// ...
return (
<div className="myColorPicker">
<Map
x={this.state.saturation}
y={this.state.value}
max={100}
backgroundColor={this.getHue()}
onChange={this.handleSaturationValue}
/>
<Slider
vertical={true}
value={this.state.hue}
max={360}
onChange={this.handleHue}
/>
</div>
// ...
$ npm start
# goto http://localhost:3040/
The project start as a derivate of the awesome react-simple-colorpicker which is based on react-colorpicker. Licensed MIT.
coming soon
FAQs
A tiny Color Picker for React
The npm package coloreact receives a total of 368 weekly downloads. As such, coloreact popularity was classified as not popular.
We found that coloreact 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.