Redis key generator that joins arguments into a string with a configurable separator (default ':') and optional prefix. Version 1.3.0 is stable with no recent releases; it provides a concise alternative to manual array joining. Differentiator: minimal footprint — no dependencies, supports custom separator and prefix for consistent key namespacing.
npm install redis-keyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows importing the default function and the defaults export, using default separator, setting custom separator with prefix, and just custom separator.
Use the returned function for consistent separator/prefix instead of mixing rk() calls after defaults().
If you need a prefix, use defaults() to create a new function or manually prepend the prefix in your key.
Ensure all arguments are primitives (string, number) or explicitly convert to string.
Consider using template literals or arrays.join(':') for zero-dependency solution.Use: const rk = require('redis-key'); // CommonJS
or import rk from 'redis-key'; // ESMEnsure you have called defaults() correctly and stored the returned function.
Run: npm install redis-key
No dependency data recorded yet.