Permalink
Browse files

removing styles

  • Loading branch information...
1 parent a50d25d commit 200b2a303332e7350d49649805240dcd35222401 @thlorenz committed Jan 13, 2013
Showing with 0 additions and 23 deletions.
  1. +0 −23 ansicolors.js
View
@@ -38,30 +38,8 @@ var colorNums = {
, bgBrightWhite : 107
}
, colors = {}
- // bold - brightens the color (bold-blue is same as brigthtBlue)
- // italic - nothing on Mac or Linux
- // underline - underlines string
- // blink - nothing on Mac or linux
- // inverse - background becomes foreground and vice versa
- , styleNums = {
- bold : [1, 22]
- , dim : [2, 22]
- , italic : [3, 23]
- , underline : [4, 24]
- , blink : [5, 25]
- , inverse : [7, 27]
- }
- , styles = {}
;
-Object.keys(styleNums).forEach(function (k) {
- styles[k] = function (s) {
- var open = styleNums[k][0]
- , close = styleNums[k][1];
- return '\u001b[' + open + 'm' + s + '\u001b[' + close + 'm';
- };
-});
-
Object.keys(colorNums).forEach(function (k) {
colors[k] = function (s) {
return '\u001b[' + colorNums[k] + 'm' + s + '\u001b[39m';
@@ -74,5 +52,4 @@ Object.keys(backgroundColorNums).forEach(function (k) {
};
});
-
module.exports = colors;

0 comments on commit 200b2a3

Please sign in to comment.