Skip to content

Commit

Permalink
Fix sebz#4 - Remove underscore dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jlescot committed May 18, 2017
1 parent 0b59755 commit 286fa68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var clc = require("cli-color");
var _ = require("underscore");

var startSymbol = String.fromCharCode(10033);
var doneSymbol = String.fromCharCode(10004);
Expand Down Expand Up @@ -141,13 +140,14 @@ module.exports = conzole;
function getArgumentsAsString(args) {
var response = [];

_.each(args, function(arg) {
for (var a in args) {
var arg = args[a];
if (typeof arg === "object") {
response.push(JSON.stringify(arg));
} else {
response.push(arg);
}
});
}
return response.join(" ");
}

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"author": "Sebastien Moran (sebz)",
"license": "ISC",
"dependencies": {
"cli-color": "^0.2.3",
"underscore": "^1.7.0"
"cli-color": "^0.2.3"
}
}

0 comments on commit 286fa68

Please sign in to comment.