anjaligupta27/colors

Get colors in your node.js console

⭐ 0 stars💬 0 comments

Files

📄 .eslintrc.json234 B
📄 .gitignore22 B
📄 .npmignore60 B
📄 .travis.yml172 B
📄 LICENSE1.2 KB
📄 README.md4.5 KB
📄 ROADMAP.md1.2 KB
📁 examples
📄 index.d.ts2.9 KB
📁 lib
📄 package-lock.json39 KB
📄 package.json1 KB
📄 safe.d.ts1.9 KB
📄 safe.js248 B
📁 screenshots
📁 tests
📁 themes

README

# 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) Please check out the [roadmap](ROADMAP.md) for upcoming features and releases. Please open Issues to provide feedback, and check the `develop` branch for the latest bleeding-edge updates. ## get color and style in your node.js console ![Demo](https://raw.githubusercontent.com/Marak/colors.js/master/screenshots/colors.png) ## Installation npm install colors ## colors and styles! ### text colors - black - red - green - yellow - blue - magenta - cyan - white - gray - grey ### bright text colors - brightRed - brightGreen - brightYellow - brightBlue - brightMagenta - brightCyan - brightWhite ### background colors - bgBlack - bgRed - bgGreen - bgYellow - bgBlue - bgMagenta - bgCyan - bgWhite - bgGray - bgGrey ### bright background colors - bgBrightRed - bgBrightGreen - bgBrightYellow - bgBrightBlue - bgBrightMagenta - bgBrightCyan - bgBrightWhite ### styles - reset - bold - dim - italic - underline - inverse - hidden - strikethrough ### extras - rainbow - zebra - america - trap - random ## Usage By popular demand, `colors` now ships with two types of usages! The super nifty way ```js 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 console.log('Run the trap'.trap); // Drops the bass ```
SocialRepo
Login

loading/repo...

Latest Updates

Discussion