entities
Version:
Encode & decode XML and HTML entities with ease & speed
80 lines (79 loc) • 2.58 kB
JSON
{
"name": "entities",
"version": "9.0.0",
"description": "Encode & decode XML and HTML entities with ease & speed",
"keywords": [
"html entities",
"entity decoder",
"entity encoding",
"html decoding",
"html encoding",
"xml decoding",
"xml encoding"
],
"repository": {
"type": "git",
"url": "https://github.com/fb55/entities.git"
},
"funding": "https://github.com/fb55/entities?sponsor=1",
"license": "BSD-2-Clause",
"author": "Felix Boehm <me@feedic.com>",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./decode": {
"types": "./dist/decode.d.ts",
"default": "./dist/decode.js"
},
"./escape": {
"types": "./dist/escape.d.ts",
"default": "./dist/escape.js"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"src",
"!**/*.spec.ts"
],
"scripts": {
"prebenchmark": "npm ci --prefix scripts/benchmark",
"benchmark": "npm --prefix scripts/benchmark run benchmark --",
"build": "npm run clean && tsc",
"build:decode-map": "node --import=tsx scripts/write-decode-map.ts",
"build:docs": "typedoc --hideGenerator src/index.ts",
"build:encode-trie": "node --import=tsx scripts/write-encode-map.ts",
"clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\"",
"format": "npm run format:es && npm run format:biome",
"format:biome": "biome check --fix .",
"format:es": "npm run lint:es -- --fix",
"lint": "npm run lint:es && npm run lint:ts && npm run lint:biome",
"lint:biome": "biome check .",
"lint:es": "eslint .",
"lint:ts": "tsc --noEmit -p tsconfig.eslint.json",
"prepublishOnly": "npm run build",
"test": "npm run test:vi && npm run lint",
"test:vi": "vitest run"
},
"devDependencies": {
"@biomejs/biome": "^2.5.15",
"@eslint/compat": "^2.1.1",
"@feedic/eslint-config": "^0.5.0",
"@types/node": "^26.6.5",
"eslint": "^10.13.0",
"eslint-config-biome": "^2.1.3",
"tsx": "^4.23.15",
"typedoc": "^0.28.20",
"typescript": "^6.0.3",
"typescript-eslint": "^8.71.2",
"vitest": "^5.0.5"
},
"engines": {
"node": ">=20.19.0"
}
}