| { |
| "name": "entities", |
| "version": "8.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": { |
| "benchmark": "node --import=tsx scripts/benchmark.ts", |
| "build": "tsc", |
| "build:docs": "typedoc --hideGenerator src/index.ts", |
| "build:encode-trie": "node --import=tsx scripts/write-encode-map.ts", |
| "build:trie": "node --import=tsx scripts/write-decode-map.ts", |
| "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", |
| "prepublishOnly": "npm run build", |
| "test": "npm run test:vi && npm run lint", |
| "test:vi": "vitest run" |
| }, |
| "devDependencies": { |
| "@biomejs/biome": "^2.4.7", |
| "@eslint/compat": "^2.0.3", |
| "@feedic/eslint-config": "^0.3.1", |
| "@types/he": "^1.2.3", |
| "@types/node": "^25.5.0", |
| "eslint": "^10.0.3", |
| "eslint-config-biome": "^2.1.3", |
| "globals": "^17.4.0", |
| "he": "^1.2.0", |
| "html-entities": "^2.6.0", |
| "parse-entities": "^4.0.2", |
| "tinybench": "^6.0.0", |
| "tsx": "^4.21.0", |
| "typedoc": "^0.28.17", |
| "typescript": "^5.9.3", |
| "typescript-eslint": "^8.57.1", |
| "vitest": "^4.0.17" |
| }, |
| "engines": { |
| "node": ">=20.19.0" |
| } |
| } |