diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..fd842b0 --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +# Development files +/tests/ +/.travis.yml +/screenshots diff --git a/.travis.yml b/.travis.yml index 22a2e83..9c75946 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,12 @@ language: node_js node_js: + - "9" + - "8" + - "7" + - "6" + - "5" - "4" - "0.12" - "0.11" - "0.10" - "0.8" - - "0.6" diff --git a/ReadMe.md b/ReadMe.md index f09eb70..14a4731 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1,4 +1,8 @@ -# colors.js [![Build Status](https://travis-ci.org/Marak/colors.js.svg?branch=master)](https://travis-ci.org/Marak/colors.js) +# colors.js +[![Build Status](https://travis-ci.org/Marak/colors.js.svg?branch=master)](https://travis-ci.org/Marak/colors.js) +[![version](https://img.shields.io/npm/v/colors.svg)](https://www.npmjs.org/package/colors) +[![dependencies](https://david-dm.org/Marak/colors.js.svg)](https://david-dm.org/Marak/colors.js) +[![devDependencies](https://david-dm.org/Marak/colors.js/dev-status.svg)](https://david-dm.org/Marak/colors.js#info=devDependencies) ## get color and style in your node.js console diff --git a/lib/extendStringPrototype.js b/lib/extendStringPrototype.js index 67374a1..d6a3f63 100644 --- a/lib/extendStringPrototype.js +++ b/lib/extendStringPrototype.js @@ -67,7 +67,7 @@ module['exports'] = function () { var stringPrototypeBlacklist = [ '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt', - 'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring', + 'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'repeat', 'replace', 'search', 'slice', 'split', 'substring', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight' ]; @@ -110,4 +110,4 @@ module['exports'] = function () { } }; -}; \ No newline at end of file +}; diff --git a/package.json b/package.json index 7874fd2..a1ed764 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "colors", "description": "get colors in your node.js console", - "version": "1.1.2", + "version": "1.2.0", "author": "Marak Squires", "homepage": "https://github.com/Marak/colors.js", "bugs": "https://github.com/Marak/colors.js/issues", @@ -17,7 +17,7 @@ "engines": { "node": ">=0.1.90" }, - "main": "lib", + "main": "lib/index.js", "dependencies": { "has-flag": "^3.0.0" }, diff --git a/safe.js b/safe.js index a6a1f3a..b2574e7 100644 --- a/safe.js +++ b/safe.js @@ -1,9 +1,9 @@ // // Remark: Requiring this file will use the "safe" colors API which will not touch String.prototype // -// var colors = require('colors/safe); +// var colors = require('colors/safe'); // colors.red("foo") // // var colors = require('./lib/colors'); -module['exports'] = colors; \ No newline at end of file +module['exports'] = colors;