Download node_modules/@redis/client/dist/lib/lua-script.js from mikmc5/aistats: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/spaces/mikmc5/aistats/resolve/main/node_modules/%40redis/client/dist/lib/lua-script.js
- Command line
-
hf download hf://spaces/mikmc5/aistats/node_modules/@redis/client/dist/lib/lua-script.js
-
curl -L -o lua-script.js https://huggingface.co/spaces/mikmc5/aistats/resolve/main/node_modules/%40redis/client/dist/lib/lua-script.js
454 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.scriptSha1 = exports.defineScript = void 0; | |
| const crypto_1 = require("crypto"); | |
| function defineScript(script) { | |
| return { | |
| ...script, | |
| SHA1: scriptSha1(script.SCRIPT) | |
| }; | |
| } | |
| exports.defineScript = defineScript; | |
| function scriptSha1(script) { | |
| return (0, crypto_1.createHash)('sha1').update(script).digest('hex'); | |
| } | |
| exports.scriptSha1 = scriptSha1; | |