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.
couchdb-timestamp-model
Advanced tools
Data model for CouchDB timestamps
npm install --save couchdb-timestamp-model
const timestamp = require('couchdb-timestamp-model')
timestamp.validate({
createdAt: '1970-01-01T00:00:00.000Z'
})
// => undefined
// undefined means the object validated
See json-clay for general API docs.
timestamp.validate(<json>)
Validate the given json
against the schema. Returns undefined
if the data
is valid, otherwise an array of errors.
timestamp.generate([attributes])
Generates a model with fake data via json-schema-faker. If an attributes object is provided, its properties will be used instead of faked values.
A handy command line tool for creating test data:
$ couchdb-timestamp-model --updatedAt "1970-01-01T00:00:00.000Z"
{
"createdAt": "3175-08-28T09:59:11.646Z",
"updatedAt": "1970-01-01T00:00:00.000Z"
}
© 2016 Tom Vincent tom@field.partners
Released under the Apache-2.0 license.
FAQs
Data model for CouchDB timestamps
The npm package couchdb-timestamp-model receives a total of 1 weekly downloads. As such, couchdb-timestamp-model popularity was classified as not popular.
We found that couchdb-timestamp-model 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.