redis-eval-mock

JSON →
library 1.0.1 ·javascript maintenance
verified Jun 7, 2026

A mock of Redis EVAL functionality for testing Lua scripts in Node.js. Version 1.0.1, last updated in 2019, with no active development. It integrates with existing redis mocks like redis-mock and provides mock implementations of cjson and cmsgpack libraries. It allows testing Lua scripts without a real Redis server, but note that evalsha always throws NOSCRIPT as there is no script cache. The package ships TypeScript types and has a peer dependency on @types/redis. It is a niche testing utility, not updated recently.