Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
q-fork-react-wordcloud
Advanced tools
Powerful React + D3 word cloud component with rich features.
Powerful React + D3 word cloud component with rich features. Based on the original word cloud generator: https://www.jasondavies.com/wordcloud/.
Add to package.json
with yarn
or npm
.
yarn add https://github.com/chrisrzhou/react-wordcloud.git
This is a simple example using minimal props.
import * as React from 'react';
import ReactWordCloud from 'react-wordcloud';
const words = [
{word: 'hello', value: 3},
{word: 'world', value: 1},
{word: 'github', value: 1},
{word: 'code', value: 1},
];
const WORD_COUNT_KEY = 'value';
const WORD_KEY = 'word';
const MyWordCloud = () => {
return (
<div style={{width: 600, height: 400}}>
<ReactWordCloud
words={words}
wordCountKey={WORD_COUNT_KEY}
wordKey={WORD_KEY}
/>
</div>
);
};
export default MyWordCloud;
Check out the code in this word cloud generator
to see how to use react-wordcloud
in production.
This generator allows you to tweak many properties of the word cloud component.
It also demonstrates how we can parse string into words, and bind click actions on the words to highlight their occurrences in the original text.
FAQs
Powerful React + D3 word cloud component with rich features.
The npm package q-fork-react-wordcloud receives a total of 0 weekly downloads. As such, q-fork-react-wordcloud popularity was classified as not popular.
We found that q-fork-react-wordcloud 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.