
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-whiteboard-flow
Advanced tools
A React component for a whiteboard with drawing, erasing, and JS code-to-flowchart visualization.
A React component for a whiteboard with drawing, erasing, and JavaScript code-to-flowchart visualization.
js2flowchartnpm install react-whiteboard-flow
or
yarn add react-whiteboard-flow
Import and use the WhiteboardFlow component in your React app:
import React from "react";
import WhiteboardFlow from "react-whiteboard-flow";
import "./App.css";
function App() {
const exampleCode = `
const doStuff = (stuff) => {
if (stuff) {
if (devFlag) {
log('perf start');
doRecursion();
log('perf end');
return;
}
doRecursion();
end();
} else {
throw new Error('No stuff!');
}
return null;
};
`;
return (
<div className="whiteboard-container">
<WhiteboardFlow
width="360"
height="650"
code={exampleCode}
className="canvas"
/>
</div>
);
}
export default App;
width (number or string): Canvas width (default: 360)height (number or string): Canvas height (default: 650)code (string): JavaScript code to visualize as a flowchartclassName (string): CSS class for the canvasContributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request on GitHub.
MIT
FAQs
A React component for a whiteboard with drawing, erasing, and JS code-to-flowchart visualization.
The npm package react-whiteboard-flow receives a total of 0 weekly downloads. As such, react-whiteboard-flow popularity was classified as not popular.
We found that react-whiteboard-flow demonstrated a healthy version release cadence and project activity because the last version was released less than 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.