
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
redis-scripto2
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
This is a fork of redis-scripto
with updated dependencies for modern Node.js. The API is identical, so if you currently use redis-scripto
, you can migrate to redis-scripto2
without making any changes in your code except for the package name.
script load
and evasha
manuallydirname
to scripto
, it will take care of lua scripts var Scripto = require('redis-scripto2');
var scriptManager = new Scripto(redisClient);
scriptManager.loadFromDir('/path/to/lua/scripts');
var keys = ['keyOne', 'keyTwo'];
var values = [10, 20];
scriptManager.run('your-script', keys, values, function(err, result) {
});
scripto
tries to load scripts into redis (via script load
).run()
it will use eval
and send the plaintext lua script to redis.run()
it will use evalsha
and does not send plaintext lua script.eval()
method scriptManager.eval('your-script', keys, values, function(err, result) {
});
var scriptManager = new Scripto(redisClient);
scriptManager.loadFromFile('script-one', '/path/to/the/file');
scriptManager.run('script-one', [], [], function(err, result) {
});
var scripts = {
'script-one': 'return 1000'
};
var scriptManager = new Scripto(redisClient);
scriptManager.load(scripts);
scriptManager.run('script-one', [], [], function(err, result) {
});
FAQs
Redis Lua Script Manager for NodeJS
The npm package redis-scripto2 receives a total of 212 weekly downloads. As such, redis-scripto2 popularity was classified as not popular.
We found that redis-scripto2 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
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.