fast-slice-ansi
Version:
A tiny and fast text slicing library which takes ANSI escapes into account.
50 lines (49 loc) • 1.22 kB
JSON
{
"name": "fast-slice-ansi",
"version": "0.2.0",
"files": [
"lib"
],
"description": "A tiny and fast text slicing library which takes ANSI escapes into account.",
"keywords": [
"slice",
"ansi",
"term",
"colors"
],
"homepage": "https://github.com/43081j/fast-slice-ansi#readme",
"bugs": {
"url": "https://github.com/43081j/fast-slice-ansi/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/43081j/fast-slice-ansi.git"
},
"license": "MIT",
"author": "James Garbutt (https://github.com/43081j)",
"type": "module",
"main": "lib/main.js",
"scripts": {
"clean": "premove lib",
"format": "prettier --write src",
"lint": "eslint src && prettier --check src",
"build": "npm run clean && tsc",
"test": "node --test"
},
"devDependencies": {
"@eslint/js": "^9.32.0",
"@types/node": "^24.1.0",
"eslint": "^9.32.0",
"globals": "^16.3.0",
"premove": "^4.0.0",
"prettier": "^3.6.2",
"slice-ansi": "^7.1.0",
"tinybench": "^4.0.1",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0"
},
"dependencies": {
"@ansi-tools/parser": "^1.0.10",
"fast-string-width": "^1.1.0"
}
}