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.
ioredis-type
Advanced tools
redis type orm
npm install ioredis-type
const Redis = require('ioredis-type');
const redis = new Redis({
// host: '127.0.0.1',
// password: '',
// port: 6379,
// db: 0,
});
async function main() {
const number = redis.root.Number('number');
await number.set(10);
await number.get(); // 10
await number.inc(-1); // 9
}
main().finally(() => redis.close())
async function main() {
const list = redis.root.List('list');
await list.push('a', 'b', 'c', 'd');
await list.pop(2);
await list.slice(1);
await list.slice(1, 3, true);
await list.slice(1, undefined, true);
await list.index(-4);
}
main().finally(() => redis.close())
async function main() {
const zset = redis.root.ZSet('zset');
await zset.push('a', 'b', 'c', 'd');
await zset.set('a', 1);
await zset.set('c', 3);
await zset.set('b', 2);
await zset.set('d', 3);
await zset.slice(1);
await zset.slice(1, 3, true);
await zset.slice(1, undefined, true);
await zset.index(-4);
}
main().finally(() => redis.close())
async function main() {
const table = redis.root.Table('table');
await table.insert({
t: true,
f: false,
u: undefined,
n: null,
s: '',
i: 0,
a: ['A', 'B,C'],
});
await table.select();
}
main().finally(() => redis.close())
async function main() {
const dirA = redis.root.Dir('A');
const dirAa = dirA.Dir('a');
await dirA.Number('num').set(10);
await dirAa.Number('num').set(100);
}
main().finally(() => redis.close())
FAQs
redis type orm
We found that ioredis-type 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.