{"library":"redis-lua2js","type":"library","category":null,"description":"Converts a Redis Lua script into a Node.js module string (CommonJS or ESM) that exports the script's name, key count, and Lua source. Version 6.0.0 supports both CJS and ESM output types. It is a build-time tool meant to integrate with Gulp or hook-based loaders, not for direct runtime use. Compared to alternatives like manually loading Lua files, it automates extracting metadata from Lua comments and provides a standard interface compatible with ioredis. Release cadence is low; last major version dropped support for older Node.js (requires >=20).","language":"javascript","status":"active","version":"6.0.0","tags":["javascript","redis","lua","ioredis"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-lua2js","imports":["import lua2js from 'redis-lua2js';","const result = lua2js(luaScript, { type: 'module' });","const { name } = requireFromString(lua2js(luaScript)); console.log(name);"]},{"cmd":"yarn add redis-lua2js","imports":[]},{"cmd":"pnpm add redis-lua2js","imports":[]}],"homepage":"https://github.com/dotcore64/redis-lua2js#readme","github":"https://github.com/dotcore64/redis-lua2js","docs":null,"changelog":null,"pypi":null,"npm":"redis-lua2js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}