diff --git a/lib/Default.coffee b/lib/Default.coffee index 9f93b29..0c235ee 100644 --- a/lib/Default.coffee +++ b/lib/Default.coffee @@ -5,7 +5,6 @@ chalk = require 'chalk' formatUtil = require './Format' stripAnsi = require 'strip-ansi' CONST = require './Constants' -repeat = require 'repeat-string' module.exports = print: -> @@ -15,7 +14,7 @@ module.exports = decorateCounter: (counter) -> str = '' + counter n = CONST.DECORATE_COUNTER_ZERO_N - str.length - return repeat('0', n) + str if n > 0 + return '0'.repeat(n) + str if n > 0 str outputMessage: (message) -> message diff --git a/package.json b/package.json index bb9640c..4fb40e6 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "coffee-script": "~1.10.0", "lodash.defaults": "~4.0.1", "ms": "~0.7.1", - "repeat-string": "~1.5.4", "strip-ansi": "~3.0.1" }, "devDependencies": {