mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 02:50:10 +00:00
Merge branch 'develop' into patch-4
This commit is contained in:
commit
93dd9c7730
4
.npmignore
Normal file
4
.npmignore
Normal file
@ -0,0 +1,4 @@
|
||||
# Development files
|
||||
/tests/
|
||||
/.travis.yml
|
||||
/screenshots
|
||||
@ -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"
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
# colors.js [](https://travis-ci.org/Marak/colors.js)
|
||||
# colors.js
|
||||
[](https://travis-ci.org/Marak/colors.js)
|
||||
[](https://www.npmjs.org/package/colors)
|
||||
[](https://david-dm.org/Marak/colors.js)
|
||||
[](https://david-dm.org/Marak/colors.js#info=devDependencies)
|
||||
|
||||
## get color and style in your node.js console
|
||||
|
||||
|
||||
@ -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 () {
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@ -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"
|
||||
},
|
||||
|
||||
4
safe.js
4
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;
|
||||
module['exports'] = colors;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user