Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

-- lint

  • Loading branch information...
commit 3b754ece7b885d06988db463911b1e4a021a9c16 1 parent 88beccb
@medikoo authored
View
16 lib/index.js
@@ -11,11 +11,11 @@ toString = function (code, str) {
codes = {
// styles
- 'bold' : [1, 22],
- 'italic' : [3, 23],
- 'underline' : [4, 24],
- 'inverse' : [7, 27],
- 'strike' : [9, 29]
+ bold: [1, 22],
+ italic: [3, 23],
+ underline: [4, 24],
+ inverse: [7, 27],
+ strike: [9, 29]
};
['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white'].forEach(
@@ -53,11 +53,11 @@ properties.bgBright = {
};
init = function () {
- var o = defineProperties(function self (msg) {
+ var o = defineProperties(function self(msg) {
return self.style.reduce(function (msg, code) {
if ((self._bright && (code[0] >= 30) && (code[0] < 38)) ||
- (self._bgBright && (code[0] >= 40) && (code[0] < 48))) {
- code = [code[0]+60, code[1]];
+ (self._bgBright && (code[0] >= 40) && (code[0] < 48))) {
+ code = [code[0] + 60, code[1]];
}
return toString(code, msg);
}, msg);
View
2  lib/throbber.js
@@ -17,7 +17,7 @@ p = {
} else {
this.throbbed = true;
}
- this.write(chars[this.next++%l]);
+ this.write(chars[this.next++ % l]);
},
onstop: function () {
if (this.throbbed) {
View
1  test/__playground/throbber.formatted.js
@@ -11,4 +11,3 @@ setTimeout(i.stop.bind(i), 1100);
throbber(i, format);
process.stdout.write('START');
-
View
13 test/throbber.js
@@ -1,7 +1,7 @@
'use strict';
var spawn = require('child_process').spawn
- , pg = __dirname + '/__playground'
+ , pg = __dirname + '/__playground';
module.exports = {
"": function (a, d) {
@@ -16,8 +16,9 @@ module.exports = {
});
t.on('exit', function () {
a.ok(out.length > 4, "Interval");
- a(out.join(""), "START-\b\\\b|\b/\b-\b", "Output")
- a(err, "", "No stderr output"); d();
+ a(out.join(""), "START-\b\\\b|\b/\b-\b", "Output");
+ a(err, "", "No stderr output");
+ d();
});
},
"Formatted": function (a, d) {
@@ -32,8 +33,10 @@ module.exports = {
});
t.on('exit', function () {
a.ok(out.length > 4, "Interval");
- a(out.join(""), "START\x1b[31m-\x1b[39m\b\x1b[31m\\\x1b[39m\b\x1b[31m|\x1b[39m\b\x1b[31m/\x1b[39m\b\x1b[31m-\x1b[39m\b", "Output")
- a(err, "", "No stderr output"); d();
+ a(out.join(""), "START\x1b[31m-\x1b[39m\b\x1b[31m\\\x1b[39m\b\x1b[31m" +
+ "|\x1b[39m\b\x1b[31m/\x1b[39m\b\x1b[31m-\x1b[39m\b", "Output");
+ a(err, "", "No stderr output");
+ d();
});
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.