Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngot/console-colour
a package can change the console output color.
https://github.com/ngot/console-colour
Last synced: about 2 months ago
JSON representation
a package can change the console output color.
- Host: GitHub
- URL: https://github.com/ngot/console-colour
- Owner: ngot
- License: mit
- Created: 2014-01-30T09:09:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-16T01:53:35.000Z (almost 11 years ago)
- Last Synced: 2024-10-16T21:26:35.707Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 219 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![NPM](https://nodei.co/npm/console-colour.png)](https://nodei.co/npm/console-colour/)
[![Build Status](https://travis-ci.org/ngot/console-colour.png?branch=master)](https://travis-ci.org/ngot/console-colour)
# Console Colour
`console-colour` is a small package that can be used with [node.js](http://nodejs.org) to control console output. The package can change the output text color.
###Installation
Install with [npm](http://npmjs.org) to current directory:
```bash
npm install console-colour --save
```###Usage
`require` package into your project:
```js
require('console-colour')(String);
```
or
`require` package into your project:
```js
var cconsole = require('console-colour').color;
```###Examples
```js
console.log("bold".bold);
console.log(cconsole.bold("bold"));
```
It will print the string `bold` in bold at terminal.For more usage ,please see `examples/examples.js`.
###LICENSE
#####MIT