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 |
FAQs
vx mock data
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.