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.
@vx/mock-data
Advanced tools
npm install --save @vx/mock-data
The @vx/mock-data
package is here to help you test out your graphs.
Generators can create simple generic data for you like this:
import Mock from '@vx/mock-data';
const points = Mock.genRandomNormalPoints();
Mock.genRandomNormalPoints()
Returns a series of random normal x,y points.
Mock.getDateValue(n)
Generates n
date values an hour apart from each other starting with the current time.
Mock are essentially a bunch of data dumps that you can use like this:
import Mock from '@vx/mock-data';
const data = Mock.cityTemperature;
Mock.appleStock
Property |
---|
date |
close |
Mock.browserUsage
Property |
---|
date |
Google Chrome |
Internet Explorer |
Firefox |
Safari |
Microsoft Edge |
Opera |
Mozilla |
Other/Unknown |
Mock.cityTemperature
Property |
---|
date |
New York |
San Francisco |
Austin |
Mock.groupDateValue
Property |
---|
date |
key |
value |
Mock.letterFrequency
Property |
---|
letter |
frequency |
v0.0.143
<Tree />
& <Cluster />
now only pass data
as an argument to the child render function #173<Pack />
, <Partition />
, & <Treemap />
#173Changes:
- @vx/annotation: 0.0.142 => 0.0.143
- @vx/axis: 0.0.142 => 0.0.143
- @vx/bounds: 0.0.141 => 0.0.143
- @vx/boxplot: 0.0.140 => 0.0.143
- @vx/brush: 0.0.140 => 0.0.143
- @vx/clip-path: 0.0.140 => 0.0.143
- @vx/curve: 0.0.140 => 0.0.143
- @vx/demo: 0.0.142 => 0.0.143
- @vx/drag: 0.0.140 => 0.0.143
- @vx/event: 0.0.141 => 0.0.143
- @vx/geo: 0.0.140 => 0.0.143
- @vx/glyph: 0.0.140 => 0.0.143
- @vx/gradient: 0.0.140 => 0.0.143
- @vx/grid: 0.0.142 => 0.0.143
- @vx/group: 0.0.140 => 0.0.143
- @vx/heatmap: 0.0.140 => 0.0.143
- @vx/hierarchy: 0.0.141 => 0.0.143
- @vx/legend: 0.0.141 => 0.0.143
- @vx/marker: 0.0.142 => 0.0.143
- @vx/mock-data: 0.0.136 => 0.0.143
- @vx/network: 0.0.140 => 0.0.143
- @vx/pattern: 0.0.140 => 0.0.143
- @vx/point: 0.0.136 => 0.0.143
- @vx/responsive: 0.0.140 => 0.0.143
- @vx/scale: 0.0.140 => 0.0.143
- @vx/shape: 0.0.142 => 0.0.143
- @vx/text: 0.0.140 => 0.0.143
- @vx/tooltip: 0.0.141 => 0.0.143
- @vx/voronoi: 0.0.140 => 0.0.143
- @vx/vx: 0.0.142 => 0.0.143
- @vx/zoom: 0.0.140 => 0.0.143
FAQs
vx mock data
The npm package @vx/mock-data receives a total of 2,932 weekly downloads. As such, @vx/mock-data popularity was classified as popular.
We found that @vx/mock-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
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.