redis-argument-parser
v1.0.0
Published
Parse types of arguments for a Redis command.
Downloads
4
Readme
Parse types of arguments for a Redis command.
Usage
var parser = require('redis-argument-parser')
var command = new parser.RedisCommand('mset') // or 'MSET'
var types = command.parseInputs(['k1', 1, 'k2', 2])
console.log(types)
// [ 'key', 'string', 'key', 'string' ]