
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
redis-lua-dependency-manager
Advanced tools
Gulp plugin that manages and inject dependency for redis lua script, so that the lua script can be written as composable modules
Gulp plugin that manages and inject dependency for redis lua script, so that the lua script can be written as composable modules
In the file that requires dependency add --@require 'FILE_NAME'; See below for example
--@require './log.lua';
local minuteKeys = redis.call('keys','*MYLIST');
for i,key in ipairs(minuteKeys) do
redis.call("LTRIM",key,0 , 2000)
end
The output file will contain
--[[ Injected by lua-redis-dependency-manager
-- /Users/AAravindan/dev/redis-lua-dependency-manager/lua-scripts/app/log.lua
-- dependent /Users/AAravindan/dev/redis-lua-dependency-manager/lua-scripts/app/ClearOldRecords.lua
]]
local function log(logdata)
redis.call('PUBLISH', 'debug', cjson.encode(logdata));
end
--[[ Injected by lua-redis-dependency-manager
-- /Users/AAravindan/dev/redis-lua-dependency-manager/lua-scripts/app/ClearOldRecords.lua
]]
--@require './log.lua';
local minuteKeys = redis.call('keys','*MYLIST');
for i,key in ipairs(minuteKeys) do
redis.call("LTRIM",key,0 , 2000)
end
Do not add comments about the dependency file.
Type: boolean
Default: false
npm init;
npm install --save redis-lua-dependency-manager
var gulp = require('gulp');
var addLuaDependents = require('./index.js');
gulp.task('default', function() {
gulp.src(['./lua-scripts/app/*.lua'])
.pipe(addLuaDependents())
.pipe(gulp.dest('./lua-scripts/dist'))
});
execute gulp and you can see your files available in dist directory.
You can also use gulp watch to run whenever the file changes.
Create issues or provide pull requests if you made any enhancement.
You can clone this repository execute npm install and then execute gulp to see it in action.
FAQs
Gulp plugin that manages and inject dependency for redis lua script, so that the lua script can be written as composable modules
The npm package redis-lua-dependency-manager receives a total of 0 weekly downloads. As such, redis-lua-dependency-manager popularity was classified as not popular.
We found that redis-lua-dependency-manager 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.