{"library":"redis-commands","type":"library","category":null,"description":"This package provides a comprehensive list of all Redis commands, their flags, and utility functions. Version 1.7.0 is stable and maintained as part of the NodeRedis ecosystem. It exports an array of all lowercased command names, a function to check command existence, a function to test for specific flags (e.g., 'readonly'), and a function to extract key indexes from command arguments. It is commonly used internally by Redis clients like node_redis to validate commands and parse key positions. The package is lightweight, has no runtime dependencies, and is primarily used in Node.js environments.","language":"javascript","status":"maintenance","version":"1.7.0","tags":["javascript","redis","commands","prefix"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-commands","imports":["const { list } = require('redis-commands');","const { exists } = require('redis-commands');","const { hasFlag } = require('redis-commands');","const { getKeyIndexes } = require('redis-commands');"]},{"cmd":"yarn add redis-commands","imports":[]},{"cmd":"pnpm add redis-commands","imports":[]}],"homepage":"https://github.com/NodeRedis/redis-commands","github":"https://github.com/NodeRedis/redis-commands","docs":null,"changelog":null,"pypi":null,"npm":"redis-commands","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}