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.
@crave/farmblocks-stepper
Advanced tools
A React component for displaying step to step actions. See Storybook
npm install @crave/farmblocks-stepper
Pass a list of steps
to be completed, the quantity of completedSteps
and a function to handle onClick
.
The Stepper
component will render:
COMPLETED
status from index 0 of the steps
array until the index of the last completed step (completedSteps - 1
);CURRENT
status to the next step after the last completed stepPENDING
status to all remaining stepsonClick
will be called only for CURRENT
steps.
const React = require("react");
const ReactDOM = require("react-dom");
const Stepper = require("@crave/farmblocks-stepper").default;
const { statusTypes } = require("@crave/farmblocks-stepper");
const root = document.createElement("div");
const steps = [
"Complete profile",
"Add bank account",
"Connect to purchasers",
"Add products",
"Start selling"
];
const completedSteps = 2;
ReactDOM.render(
<Stepper steps={steps} completedSteps={completedSteps} onClick={({index, value}) => console.log("Handle click", index, value)} />,
root
);
document.body.appendChild(root);
See it in the source
MIT
FAQs
A React Component for displaying step to step actions
The npm package @crave/farmblocks-stepper receives a total of 119 weekly downloads. As such, @crave/farmblocks-stepper popularity was classified as not popular.
We found that @crave/farmblocks-stepper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.