Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ansi-escape-sequences

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-escape-sequences - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

dist/index.js

14

package.json
{
"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>&quot;\u001b[37m&quot;</code> |
| gray | <code>string</code> | <code>&quot;\u001b[90m&quot;</code> |
| &quot;bg-black&quot; | <code>string</code> | <code>&quot;\u001b[40m&quot;</code> |
| &quot;bg-red&quot; | <code>string</code> | <code>&quot;\u001b[41m&quot;</code> |
| &quot;bg-green&quot; | <code>string</code> | <code>&quot;\u001b[42m&quot;</code> |
| &quot;bg-yellow&quot; | <code>string</code> | <code>&quot;\u001b[43m&quot;</code> |
| &quot;bg-blue&quot; | <code>string</code> | <code>&quot;\u001b[44m&quot;</code> |
| &quot;bg-magenta&quot; | <code>string</code> | <code>&quot;\u001b[45m&quot;</code> |
| &quot;bg-cyan&quot; | <code>string</code> | <code>&quot;\u001b[46m&quot;</code> |
| &quot;bg-white&quot; | <code>string</code> | <code>&quot;\u001b[47m&quot;</code> |
| &quot;bg-gray&quot; | <code>string</code> | <code>&quot;\u001b[100m&quot;</code> |
| grey | <code>string</code> | <code>&quot;\u001b[90m&quot;</code> |
| gray | <code>string</code> | <code>&quot;\u001b[90m&quot;</code> |
| "bg-black" | <code>string</code> | <code>&quot;\u001b[40m&quot;</code> |
| "bg-red" | <code>string</code> | <code>&quot;\u001b[41m&quot;</code> |
| "bg-green" | <code>string</code> | <code>&quot;\u001b[42m&quot;</code> |
| "bg-yellow" | <code>string</code> | <code>&quot;\u001b[43m&quot;</code> |
| "bg-blue" | <code>string</code> | <code>&quot;\u001b[44m&quot;</code> |
| "bg-magenta" | <code>string</code> | <code>&quot;\u001b[45m&quot;</code> |
| "bg-cyan" | <code>string</code> | <code>&quot;\u001b[46m&quot;</code> |
| "bg-white" | <code>string</code> | <code>&quot;\u001b[47m&quot;</code> |
| "bg-grey" | <code>string</code> | <code>&quot;\u001b[100m&quot;</code> |
| "bg-gray" | <code>string</code> | <code>&quot;\u001b[100m&quot;</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>
```
* * *
&copy; 2014-18 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
&copy; 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc