mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
740 B
40 lines
740 B
6 years ago
|
# log-symbols [](https://travis-ci.org/sindresorhus/log-symbols)
|
||
|
|
||
|
> Colored symbols for various log levels
|
||
|
|
||
|
Includes fallbacks for Windows CMD which only supports a [limited character set](http://en.wikipedia.org/wiki/Code_page_437).
|
||
|
|
||
|

|
||
|
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```sh
|
||
|
$ npm install --save log-symbols
|
||
|
```
|
||
|
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
var logSymbols = require('log-symbols');
|
||
|
|
||
|
console.log(logSymbols.success, 'finished successfully!');
|
||
|
// On real OSes: ✔ finished successfully!
|
||
|
// On Windows: √ finished successfully!
|
||
|
```
|
||
|
|
||
|
## API
|
||
|
|
||
|
### logSymbols
|
||
|
|
||
|
#### info
|
||
|
#### success
|
||
|
#### warning
|
||
|
#### error
|
||
|
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT © [Sindre Sorhus](http://sindresorhus.com)
|