Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from change/cc-polish
Browse files Browse the repository at this point in the history
Bump suggested node version, add `bin` and `license` keys to package
  • Loading branch information
quaelin committed Jun 1, 2016
2 parents 05fc98d + 5a53c4f commit fd78dae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.4.4
6.2.0
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ var
timeframeToSeconds = require('timeframe-to-seconds'),
util = require('util');

// Fix for stdout truncation bug in Node 6.x
// (https://github.com/nodejs/node/issues/6456)
[process.stdout, process.stderr].forEach((s) => {
s && s.isTTY && s._handle && s._handle.setBlocking &&
s._handle.setBlocking(true);
});

function RedisKeyScanner(options) {
var self = this;

Expand Down Expand Up @@ -96,7 +103,6 @@ function RedisKeyScanner(options) {
throw new TypeError('Unsupported option(s): ' + unsupportedOptions);
}
this.options = options;
//console.log(options);

// Connect to redis server / sentinel
var server = _.pick(options, ['host', 'port']),
Expand Down Expand Up @@ -231,7 +237,7 @@ function parseCommandLineAndScanKeys() {
process.exit(0);
});
} catch (ex) {
console.error(ex);
console.error(String(ex));
console.log(usage);
process.exit(1);
}
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"name": "redis-key-scanner",
"version": "0.1.0",
"version": "0.1.1",
"description": "Scan redis servers looking for key patterns and activity characteristics",
"author": "Change Engineering",
"license": "MIT",

"repository": {
"type": "git",
"url": "[email protected]:change/redis-key-scanner.git"
},
"main": "index",
"bin": "./index",
"engines": {
"node": "4.4.4"
"node": ">=4.4.5"
},

"dependencies": {
"bluebird": "^3.3.5",
"ioredis": "^1.15.1",
Expand All @@ -22,6 +26,7 @@
"chai": "^3.5.0",
"mocha": "^2.4.5"
},

"scripts": {
"test": "mocha test.js"
}
Expand Down

0 comments on commit fd78dae

Please sign in to comment.