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.
couch-init2
Advanced tools
An opiniated CouchDB databases initializer
Takes a list of databases to initialise and their design docs, and make sure that everything is up and running and in sync.
in a terminal, at the root of your project
npm install couch-init2
var dbUrl = 'http://username:password@localhost:5984'
var dbsList = [
{
name: 'dbname1',
designDocs: ['designdoc1']
},
{
name: 'dbname2',
designDocs: ['designdoc2', 'designdoc3']
},
{
name: 'dbname3',
designDocs: []
}
]
// Path to the folder where design docs can be found on the model `${designDocName}.json`
// If a design doc file from the list is missing, it will be created with a basic design doc structure
// If a design doc file changed, the database design doc will be updated
var designDocFolder = '/path/to/your/design/docs/folder'
couchInit(dbUrl, dbsList, designDocFolder)
// returns a promise
.then(res => {
console.log('ok', res.ok)
console.log('operations', res.operations)
// dbs were successfully initialized!
// time to start your server or whatever crazy thing you're building :)
})
.catch(err => { // handle the error })
3.0.0 - 2020-07-16
async
/await
internally (required NodeJS >= v8
)FAQs
Opiniated CouchDB databases initializer
The npm package couch-init2 receives a total of 1 weekly downloads. As such, couch-init2 popularity was classified as not popular.
We found that couch-init2 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.