Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
#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 5 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.