| 1 | {
|
|---|
| 2 | "name": "html-entities",
|
|---|
| 3 | "version": "2.6.0",
|
|---|
| 4 | "description": "Fastest HTML entities encode/decode library.",
|
|---|
| 5 | "keywords": [
|
|---|
| 6 | "html",
|
|---|
| 7 | "html entities",
|
|---|
| 8 | "html entities encode",
|
|---|
| 9 | "html entities decode",
|
|---|
| 10 | "entities",
|
|---|
| 11 | "entities encode",
|
|---|
| 12 | "entities decode"
|
|---|
| 13 | ],
|
|---|
| 14 | "author": {
|
|---|
| 15 | "name": "Marat Dulin",
|
|---|
| 16 | "email": "mdevils@yandex.ru"
|
|---|
| 17 | },
|
|---|
| 18 | "funding": [
|
|---|
| 19 | {
|
|---|
| 20 | "type": "github",
|
|---|
| 21 | "url": "https://github.com/sponsors/mdevils"
|
|---|
| 22 | },
|
|---|
| 23 | {
|
|---|
| 24 | "type": "patreon",
|
|---|
| 25 | "url": "https://patreon.com/mdevils"
|
|---|
| 26 | }
|
|---|
| 27 | ],
|
|---|
| 28 | "devDependencies": {
|
|---|
| 29 | "@commitlint/cli": "^17.6.6",
|
|---|
| 30 | "@commitlint/config-conventional": "^17.6.6",
|
|---|
| 31 | "@types/benchmark": "^2.1.0",
|
|---|
| 32 | "@types/he": "^1.1.1",
|
|---|
| 33 | "@types/jest": "^29.5.14",
|
|---|
| 34 | "@types/node": "^22.13.14",
|
|---|
| 35 | "benchmark": "^2.1.4",
|
|---|
| 36 | "entities": "^6.0.0",
|
|---|
| 37 | "eslint": "^9.23.0",
|
|---|
| 38 | "eslint-config-prettier": "^10.1.1",
|
|---|
| 39 | "eslint-plugin-import": "^2.31.0",
|
|---|
| 40 | "flowgen": "^1.13.0",
|
|---|
| 41 | "he": "^1.2.0",
|
|---|
| 42 | "husky": "^4.3.6",
|
|---|
| 43 | "prettier": "^3.5.3",
|
|---|
| 44 | "standard-version": "^9.5.0",
|
|---|
| 45 | "ts-jest": "^29.3.0",
|
|---|
| 46 | "tshy": "^3.0.2",
|
|---|
| 47 | "tsx": "^4.19.3",
|
|---|
| 48 | "typescript": "^5.8.2",
|
|---|
| 49 | "typescript-eslint": "^8.28.0"
|
|---|
| 50 | },
|
|---|
| 51 | "repository": {
|
|---|
| 52 | "type": "git",
|
|---|
| 53 | "url": "https://github.com/mdevils/html-entities.git"
|
|---|
| 54 | },
|
|---|
| 55 | "sideEffects": false,
|
|---|
| 56 | "main": "./dist/commonjs/index.js",
|
|---|
| 57 | "typings": "./dist/commonjs/index.d.ts",
|
|---|
| 58 | "types": "./dist/commonjs/index.d.ts",
|
|---|
| 59 | "scripts": {
|
|---|
| 60 | "test": "jest",
|
|---|
| 61 | "test:watch": "jest --watch",
|
|---|
| 62 | "test:dist": "npm run test:dist:commonjs && npm run test:dist:esm",
|
|---|
| 63 | "test:dist:commonjs": "TEST_DIST=commonjs npm run test",
|
|---|
| 64 | "test:dist:esm": "TEST_DIST=esm node --experimental-vm-modules node_modules/.bin/jest",
|
|---|
| 65 | "benchmark": "tsx benchmark/benchmark",
|
|---|
| 66 | "lint": "eslint src/**.ts",
|
|---|
| 67 | "flow-type-gen": "flowgen --add-flow-header dist/esm/index.d.ts -o dist/commonjs/index.js.flow",
|
|---|
| 68 | "remove-unused-declarations": "find dist -type f \\( -name '*.d.ts' ! -name index.d.ts \\) | xargs rm",
|
|---|
| 69 | "build": "rm -Rf dist && tsc --noEmit && tshy && tsc --declaration --emitDeclarationOnly -p tsconfig.json && tsc --emitDeclarationOnly -p tsconfig.esm.json && npm run remove-unused-declarations && npm run flow-type-gen",
|
|---|
| 70 | "prepublishOnly": "npm run build && npm run test && npm run test:dist",
|
|---|
| 71 | "release": "standard-version"
|
|---|
| 72 | },
|
|---|
| 73 | "files": [
|
|---|
| 74 | "dist",
|
|---|
| 75 | "src",
|
|---|
| 76 | "LICENSE"
|
|---|
| 77 | ],
|
|---|
| 78 | "husky": {
|
|---|
| 79 | "hooks": {
|
|---|
| 80 | "pre-commit": "npm run lint && npm run test"
|
|---|
| 81 | }
|
|---|
| 82 | },
|
|---|
| 83 | "license": "MIT",
|
|---|
| 84 | "type": "module",
|
|---|
| 85 | "tshy": {
|
|---|
| 86 | "exports": {
|
|---|
| 87 | "./package.json": "./package.json",
|
|---|
| 88 | ".": "./src/index.ts"
|
|---|
| 89 | },
|
|---|
| 90 | "selfLink": false
|
|---|
| 91 | },
|
|---|
| 92 | "exports": {
|
|---|
| 93 | "./package.json": "./package.json",
|
|---|
| 94 | ".": {
|
|---|
| 95 | "import": {
|
|---|
| 96 | "types": "./dist/esm/index.d.ts",
|
|---|
| 97 | "default": "./dist/esm/index.js"
|
|---|
| 98 | },
|
|---|
| 99 | "require": {
|
|---|
| 100 | "types": "./dist/commonjs/index.d.ts",
|
|---|
| 101 | "default": "./dist/commonjs/index.js"
|
|---|
| 102 | }
|
|---|
| 103 | }
|
|---|
| 104 | },
|
|---|
| 105 | "module": "./dist/esm/index.js"
|
|---|
| 106 | }
|
|---|