ansi-styles
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "ansi-styles", | ||
"version": "1.0.0", | ||
"description": "ANSI escape codes for colorizing strings in the terminal", | ||
"version": "1.1.0", | ||
"description": "ANSI escape codes for styling strings in the terminal", | ||
"license": "MIT", | ||
"repository": "sindresorhus/ansi-styles", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "http://sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
@@ -27,27 +43,5 @@ "ansi", | ||
], | ||
"homepage": "https://github.com/sindresorhus/ansi-styles", | ||
"bugs": "https://github.com/sindresorhus/ansi-styles/issues", | ||
"license": "MIT", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "http://sindresorhus.com" | ||
}, | ||
"files": [ | ||
"ansi-styles.js" | ||
], | ||
"main": "ansi-styles", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/sindresorhus/ansi-styles.git" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.12.0" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
"mocha": "*" | ||
} | ||
} |
@@ -1,4 +0,4 @@ | ||
# ansi-styles [![Build Status](https://secure.travis-ci.org/sindresorhus/ansi-styles.png?branch=master)](http://travis-ci.org/sindresorhus/ansi-styles) | ||
# ansi-styles [![Build Status](https://travis-ci.org/sindresorhus/ansi-styles.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-styles) | ||
> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for colorizing strings in the terminal. | ||
> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal | ||
@@ -12,6 +12,8 @@ You probably want the higher-level [chalk](https://github.com/sindresorhus/chalk) module for styling your strings. | ||
Install with [npm](https://npmjs.org/package/ansi-styles): `npm install --save ansi-styles` | ||
```sh | ||
$ npm install --save ansi-styles | ||
``` | ||
## Example | ||
## Usage | ||
@@ -24,2 +26,3 @@ ```js | ||
## API | ||
@@ -34,31 +37,33 @@ | ||
- reset | ||
- bold | ||
- italic | ||
- underline | ||
- inverse | ||
- strikethrough | ||
- `reset` | ||
- `bold` | ||
- `dim` | ||
- `italic` *(not widely supported)* | ||
- `underline` | ||
- `inverse` | ||
- `hidden` | ||
- `strikethrough` *(not widely supported)* | ||
### Text colors | ||
- black | ||
- red | ||
- green | ||
- yellow | ||
- blue | ||
- magenta | ||
- cyan | ||
- white | ||
- gray | ||
- `black` | ||
- `red` | ||
- `green` | ||
- `yellow` | ||
- `blue` | ||
- `magenta` | ||
- `cyan` | ||
- `white` | ||
- `gray` | ||
### Background colors | ||
- bgBlack | ||
- bgRed | ||
- bgGreen | ||
- bgYellow | ||
- bgBlue | ||
- bgMagenta | ||
- bgCyan | ||
- bgWhite | ||
- `bgBlack` | ||
- `bgRed` | ||
- `bgGreen` | ||
- `bgYellow` | ||
- `bgBlue` | ||
- `bgMagenta` | ||
- `bgCyan` | ||
- `bgWhite` | ||
@@ -65,0 +70,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35
71
2646
1
1