
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
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 0 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.