ansi-escape-sequences
Advanced tools
Comparing version 4.0.1 to 4.1.0
{ | ||
"name": "ansi-escape-sequences", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "A simple library containing all known terminal ansi escape codes and sequences.", | ||
"repository": "https://github.com/75lb/ansi-escape-sequences.git", | ||
"main": "./lib/ansi-escape-sequences.js", | ||
"main": "dist/index.js", | ||
"license": "MIT", | ||
@@ -18,15 +18,17 @@ "keywords": [ | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"node": ">=8.0.0" | ||
}, | ||
"scripts": { | ||
"test": "test-runner test/*.js", | ||
"docs": "jsdoc2md -d 1 -t jsdoc2md/README.hbs lib/*.js > README.md; echo" | ||
"test": "test-runner test.js", | ||
"docs": "jsdoc2md -c jsdoc.conf -d 1 -t README.hbs index.mjs > README.md; echo", | ||
"dist": "rollup index.mjs -f umd -n ansi -o dist/index.js && rollup index.mjs -f esm -o dist/index.mjs" | ||
}, | ||
"dependencies": { | ||
"array-back": "^2.0.0" | ||
"array-back": "^3.0.1" | ||
}, | ||
"devDependencies": { | ||
"jsdoc-to-markdown": "^4.0.1", | ||
"rollup": "^1.4.1", | ||
"test-runner": "^0.5.1" | ||
} | ||
} |
@@ -218,12 +218,14 @@ [![view on npm](http://img.shields.io/npm/v/ansi-escape-sequences.svg)](https://www.npmjs.org/package/ansi-escape-sequences) | ||
| white | <code>string</code> | <code>"\u001b[37m"</code> | | ||
| gray | <code>string</code> | <code>"\u001b[90m"</code> | | ||
| "bg-black" | <code>string</code> | <code>"\u001b[40m"</code> | | ||
| "bg-red" | <code>string</code> | <code>"\u001b[41m"</code> | | ||
| "bg-green" | <code>string</code> | <code>"\u001b[42m"</code> | | ||
| "bg-yellow" | <code>string</code> | <code>"\u001b[43m"</code> | | ||
| "bg-blue" | <code>string</code> | <code>"\u001b[44m"</code> | | ||
| "bg-magenta" | <code>string</code> | <code>"\u001b[45m"</code> | | ||
| "bg-cyan" | <code>string</code> | <code>"\u001b[46m"</code> | | ||
| "bg-white" | <code>string</code> | <code>"\u001b[47m"</code> | | ||
| "bg-gray" | <code>string</code> | <code>"\u001b[100m"</code> | | ||
| grey | <code>string</code> | <code>"\u001b[90m"</code> | | ||
| gray | <code>string</code> | <code>"\u001b[90m"</code> | | ||
| "bg-black" | <code>string</code> | <code>"\u001b[40m"</code> | | ||
| "bg-red" | <code>string</code> | <code>"\u001b[41m"</code> | | ||
| "bg-green" | <code>string</code> | <code>"\u001b[42m"</code> | | ||
| "bg-yellow" | <code>string</code> | <code>"\u001b[43m"</code> | | ||
| "bg-blue" | <code>string</code> | <code>"\u001b[44m"</code> | | ||
| "bg-magenta" | <code>string</code> | <code>"\u001b[45m"</code> | | ||
| "bg-cyan" | <code>string</code> | <code>"\u001b[46m"</code> | | ||
| "bg-white" | <code>string</code> | <code>"\u001b[47m"</code> | | ||
| "bg-grey" | <code>string</code> | <code>"\u001b[100m"</code> | | ||
| "bg-gray" | <code>string</code> | <code>"\u001b[100m"</code> | | ||
@@ -279,4 +281,32 @@ **Example** | ||
## Load anywhere | ||
This library is compatible with Node.js, the Web and any style of module loader. It can be loaded anywhere, natively without transpilation. | ||
Node.js: | ||
```js | ||
const ansi = require('ansi-escape-sequences') | ||
``` | ||
Within Node.js with ECMAScript Module support enabled: | ||
```js | ||
import ansi from 'ansi-escape-sequences' | ||
``` | ||
Within a modern browser ECMAScript Module: | ||
```js | ||
import ansi from './node_modules/ansi-escape-sequences/dist/index.mjs' | ||
``` | ||
Old browser (adds `window.ansi`): | ||
```html | ||
<script nomodule src="./node_modules/ansi-escape-sequences/dist/index.js"></script> | ||
``` | ||
* * * | ||
© 2014-18 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). | ||
© 2014-19 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
38990
10
763
311
3
1
+ Addedarray-back@3.1.0(transitive)
- Removedarray-back@2.0.0(transitive)
- Removedtypical@2.6.1(transitive)
Updatedarray-back@^3.0.1