Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
dionne-davenport
Advanced tools
PostgresSQL backed key/val store with support for JSON values and key expiration
Essentially hstore with JSON val
$ npm install dionne-davenport --save
Basic setting/getting
const Dionne = require('dionne-davenport')
const opts = {
appName: 'myApp',
url: process.env.DATABASE_URL
}
const store = await Dionne(opts)
await store.set('as', 'if')
const result = await store.get('as')
console.log(result) // 'if'
Batch setting/getting
const items = {
foo: 'bar',
ping: {
beep: [ 'boop', 'bop' ]
}
}
await store.setAll(items)
const result = await store.getAll(Object.keys(items))
console.log(result)
/*
{
foo: 'bar',
ping: {
beep: [ 'boop', 'bop' ]
}
}
*/
Deletion
let item
await store.set('delMe', 'foo')
item = await store.get('delMe')
console.log('delMe') // foo
await store.del('delMe')
item = await store.get('delMe')
console.log(item) // undefined
Create your test PostgresSQL database and user and create a test.env file for environment constiables
$ createuser myApp
$ createdb myApp
$ echo "DATABASE_URL=postgres://myApp:Ffoodk@localhost:5432/myApp" >> test/test.env
$ echo "NODE_ENV=test" >> test/test.env
$ echo "APP_NAME=appName" >> test/test.env
$ npm test
FAQs
PostgresSQL backed key/val store with support for JSON values and key expiration
The npm package dionne-davenport receives a total of 3 weekly downloads. As such, dionne-davenport popularity was classified as not popular.
We found that dionne-davenport 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.