José Quiñones Flores 4564da0130 Added Laravel project and removed sensitive data | 4 anni fa | |
---|---|---|
.. | ||
themes | 4 anni fa | |
MIT-LICENSE.txt | 4 anni fa | |
ReadMe.md | 4 anni fa | |
colors.js | 4 anni fa | |
example.html | 4 anni fa | |
example.js | 4 anni fa | |
package.json | 4 anni fa | |
test.js | 4 anni fa |
npm install colors
var colors = require('./colors');
console.log('hello'.green); // outputs green text
console.log('i like cake and pies'.underline.red) // outputs red underlined text
console.log('inverse the color'.inverse); // inverses the color
console.log('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)
var colors = require('colors');
colors.setTheme({
silly: 'rainbow',
input: 'grey',
verbose: 'cyan',
prompt: 'grey',
info: 'green',
data: 'grey',
help: 'cyan',
warn: 'yellow',
debug: 'blue',
error: 'red'
});
// outputs red text
console.log("this is an error".error);
// outputs yellow text
console.log("this is a warning".warn);
Marak (Marak Squires) Alexis Sellier (cloudhead) mmalecki (Maciej Małecki) nicoreed (Nico Reed) morganrallen (Morgan Allen) JustinCampbell (Justin Campbell) ded (Dustin Diaz)