redis-lua2js

JSON →
library 6.0.0 ·javascript
verified Jun 7, 2026

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).