xterm-colors
Advanced tools
+15
| /** | ||
| [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" | ||
| } | ||
| } |
+7
-14
@@ -1,29 +0,22 @@ | ||
| # xterm-colors [](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. | ||
|  | ||
|  | ||
| ## 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
5471
4.29%6
20%270
4.25%Yes
NaN2
100%23
-23.33%