You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

xterm-colors

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xterm-colors - npm Package Compare versions

Comparing version
1.0.1
to
2.0.0
+15
index.d.ts
/**
[xterm](https://en.wikipedia.org/wiki/Xterm) 256 color palette.
@example
```
import xtermColors from 'xterm-colors';
xtermColors[7];
//=> 'c0c0c0'
```
*/
declare const xtermColors: readonly string[];
export default xtermColors;
+3
-2

@@ -1,2 +0,3 @@

'use strict';
module.exports = require('./xterm-colors.json');
import xtermColors from './xterm-colors.json' with {type: 'json'};
export default xtermColors;
+47
-37
{
"name": "xterm-colors",
"version": "1.0.1",
"description": "xterm 256 color palette",
"license": "MIT",
"repository": "sindresorhus/xterm-colors",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "node test.js"
},
"files": [
"index.js",
"xterm-colors.json"
],
"keywords": [
"xterm",
"cli",
"term",
"terminal",
"256",
"colors",
"color",
"palette",
"8bit",
"list",
"array",
"json"
],
"devDependencies": {
"ava": "0.0.3"
}
"name": "xterm-colors",
"version": "2.0.0",
"description": "xterm 256 color palette",
"license": "MIT",
"repository": "sindresorhus/xterm-colors",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"engines": {
"node": ">=18.20"
},
"scripts": {
"//test": "xo && ava",
"test": "ava"
},
"files": [
"index.js",
"index.d.ts",
"xterm-colors.json"
],
"keywords": [
"xterm",
"cli",
"term",
"terminal",
"256",
"colors",
"color",
"palette",
"8bit",
"list",
"array",
"json"
],
"devDependencies": {
"ava": "^6.1.2",
"xo": "^0.58.0"
}
}

@@ -1,29 +0,22 @@

# xterm-colors [![Build Status](https://travis-ci.org/sindresorhus/xterm-colors.svg?branch=master)](https://travis-ci.org/sindresorhus/xterm-colors)
# xterm-colors
> [xterm](http://en.wikipedia.org/wiki/Xterm) 256 color palette
> [xterm](https://en.wikipedia.org/wiki/Xterm) 256 color palette
The color palette is just a [JSON file](xterm-colors.json) and can be used wherever.
The color palette is just a [JSON file](xterm-colors.json) and can be used anywhere.
![](http://upload.wikimedia.org/wikipedia/commons/9/95/Xterm_color_chart.png)
![](https://upload.wikimedia.org/wikipedia/commons/9/95/Xterm_color_chart.png)
## Install
```sh
$ npm install --save xterm-colors
npm install xterm-colors
```
## Usage
```js
var xtermColors = require('xterm-colors');
import xtermColors from 'xterm-colors';
xtermColors[7];
//=> c0c0c0
//=> 'c0c0c0'
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)

Sorry, the diff of this file is not supported yet