node-redis-scan
Advanced tools
Comparing version 1.1.1 to 1.2.1
{ | ||
"name": "node-redis-scan", | ||
"version": "1.1.1", | ||
"version": "1.2.1", | ||
"description": "A simple ES6 Redis key scanner for Node", | ||
@@ -12,3 +12,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">= 8.0.0" | ||
"node": ">= 10.12.0" | ||
}, | ||
@@ -26,7 +26,7 @@ "scripts": { | ||
"devDependencies": { | ||
"mocha": "^6.0.0", | ||
"nyc": "^14.0.0", | ||
"redis": "^2.8.0", | ||
"uuid": "^3.3.2" | ||
"mocha": "^8.0.0", | ||
"nyc": "^15.0.0", | ||
"redis": "^3.0.0", | ||
"uuid": "^8.2.0" | ||
} | ||
} |
# Node Redis key scanner | ||
A simple ES6 Redis key scanner for Node 8 and newer. This is a small class that allows you to do one thing quickly and easily: scan a Redis key space for keys that match a given pattern. | ||
A simple ES6 Redis key scanner for Node 10 and newer. This is a small class that allows you to do one thing quickly and easily: scan a Redis key space for keys that match a given pattern. | ||
@@ -8,9 +8,10 @@ See the [Redis SCAN command documentation](https://redis.io/commands/scan) for information about how to write patterns for matching, the guarantees, caveats, etc. | ||
# Install | ||
With Yarn: | ||
With NPM: | ||
``` | ||
yarn add node-redis-scan | ||
npm install node-redis-scan | ||
``` | ||
Or with NPM: | ||
Or with Yarn: | ||
``` | ||
npm install node-redis-scan | ||
yarn add node-redis-scan | ||
``` | ||
@@ -184,3 +185,3 @@ | ||
``` | ||
yarn test | ||
npm run test | ||
``` | ||
@@ -187,0 +188,0 @@ |
const assert = require('assert'); | ||
const redis = require('redis'); | ||
const redisScan = require('../redis-scan'); | ||
const uuidv4 = require('uuid/v4'); | ||
const { v4: uuidv4 } = require('uuid'); | ||
@@ -6,0 +6,0 @@ describe('Redis scan tests', function() { |
33656
194