Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
#genmo Generate intances of a jsonschema with fake data, good for mocking data
###Usage var genmo = require('genmo') var schema = { type: 'object', properties: { string: { type: 'string' }, number: { type: 'number' }, integer: { type: 'integer' }, boolean: { type: 'boolean' }, date: { type: 'date' }, arrayString: { type: 'array', items: { type: 'string' } }, arrayNumber: { type: 'array', items: { type: 'number' } }, arrayDate: { type: 'array', items: { type: 'date' } }, arrayObject: { type: 'array', items: { type: 'object', properties: { string: { type: 'string' } } } }, nestedObject: { type: 'object', properties: { number: { type: 'number' } } } } } genmo(schema)
/* output
{
string: 'Commodo est consectetur irure eiusmod fugiat nostrud.',
number: 49.28502864204347,
integer: 17,
boolean: true,
date: Tue Nov 10 2015 21:22:38 GMT-0700 (MST),
arrayString: [
'Sit pariatur ipsum excepteur ex fugiat cupidatat.'
],
arrayNumber: [
79.39803048502654
],
arrayDate: [
Tue Nov 10 2015 21:22:38 GMT-0700 (MST)
],
arrayObject: [
{
string: 'Eu ullamco et incididunt deserunt pariatur elit sit amet.'
}
],
nestedObject:
{
number: 60.45338651165366
}
}
*/
FAQs
Generates models based off of json-schemas
The npm package genmo receives a total of 0 weekly downloads. As such, genmo popularity was classified as not popular.
We found that genmo 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.