UNPKG

slice-ansi

Version:

Slice a string with ANSI escape codes

60 lines (59 loc) 990 B
{ "name": "slice-ansi", "version": "8.0.0", "description": "Slice a string with ANSI escape codes", "license": "MIT", "repository": "chalk/slice-ansi", "funding": "https://github.com/chalk/slice-ansi?sponsor=1", "type": "module", "exports": { "types": "./index.d.ts", "default": "./index.js" }, "sideEffects": false, "engines": { "node": ">=20" }, "scripts": { "test": "xo && ava && tsc --lib esnext index.d.ts" }, "files": [ "index.js", "tokenize-ansi.js", "index.d.ts" ], "keywords": [ "slice", "string", "ansi", "styles", "color", "colour", "colors", "terminal", "console", "cli", "tty", "escape", "formatting", "rgb", "256", "shell", "xterm", "log", "logging", "command-line", "text" ], "dependencies": { "ansi-styles": "^6.2.3", "is-fullwidth-code-point": "^5.1.0" }, "devDependencies": { "ava": "^6.4.1", "chalk": "^5.6.2", "random-item": "^4.0.1", "strip-ansi": "^7.1.2", "xo": "^1.2.3" } }