
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
@ioredis/commands
Advanced tools
This module exports all the commands that Redis supports.
$ npm install @ioredis/commands
const commands = require('@ioredis/commands');
.list is an array contains all the lowercased commands:
commands.list.forEach((command) => {
console.log(command);
});
.exists() is used to check if the command exists:
commands.exists('set') // true
commands.exists('other-command') // false
.hasFlag() is used to check if the command has the flag:
commands.hasFlag('set', 'readonly') // false
.getKeyIndexes() is used to get the indexes of keys in the command arguments:
commands.getKeyIndexes('set', ['key', 'value']) // [0]
commands.getKeyIndexes('mget', ['key1', 'key2']) // [0, 1]
The 'redis' npm package is a popular client for interacting with Redis databases. It provides a similar set of functionalities for executing Redis commands, but it is generally considered to be less feature-rich and less performant compared to ioredis.
The 'node-redis' package is another Redis client for Node.js. It offers a straightforward API for executing Redis commands and is known for its simplicity and ease of use. However, it may lack some of the advanced features and optimizations found in ioredis.
FAQs
Redis commands
The npm package @ioredis/commands receives a total of 5,068,305 weekly downloads. As such, @ioredis/commands popularity was classified as popular.
We found that @ioredis/commands demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.