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

Bump suggested node version, add bin and license keys to package #1

Merged
merged 3 commits into from
Jun 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "git@github.com: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