{ "name": "html-entities", "version": "2.5.2", "description": "Fastest HTML entities encode/decode library.", "keywords": [ "html", "html entities", "html entities encode", "html entities decode", "entities", "entities encode", "entities decode" ], "author": { "name": "Marat Dulin", "email": "mdevils@yandex.ru" }, "funding": [ { "type": "github", "url": "https://github.com/sponsors/mdevils" }, { "type": "patreon", "url": "https://patreon.com/mdevils" } ], "devDependencies": { "@types/benchmark": "^2.1.0", "@types/chai": "^4.2.11", "@types/he": "^1.1.1", "@types/mocha": "^7.0.2", "@types/node": "^13.13.4", "@typescript-eslint/eslint-plugin": "^4.6.1", "@typescript-eslint/parser": "^4.6.1", "benchmark": "^2.1.4", "chai": "^4.2.0", "entities": "^4.5.0", "eslint": "^7.12.1", "eslint-config-prettier": "^6.15.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-prettier": "^3.1.4", "flowgen": "^1.13.0", "he": "^1.2.0", "husky": "^4.3.6", "mocha": "^9.2.2", "prettier": "^2.1.2", "terser": "^5.6.1", "ts-node": "^8.9.1", "typescript": "^3.8.3" }, "repository": { "type": "git", "url": "https://github.com/mdevils/html-entities.git" }, "sideEffects": false, "main": "./lib/index.js", "typings": "./lib/index.d.ts", "types": "./lib/index.d.ts", "scripts": { "test": "mocha --recursive -r ts-node/register test/**/*.ts", "test:watch": "mocha -w --recursive -r ts-node/register test/**/*.ts", "test:lib": "TEST_LIB=1 npm run test", "benchmark": "ts-node benchmark/benchmark", "lint": "eslint src/**.ts", "flow-type-gen": "flowgen --add-flow-header lib/index.d.ts -o lib/index.js.flow", "remove-unused-declarations": "find lib -type f \\( -name '*.d.ts' ! -name index.d.ts \\) | xargs rm", "minimize-lib-files": "cd lib && find . -type f \\( -name '*.js' \\) | while read fn; do terser --source-map \"content='$fn.map',filename='$fn.map',url='$fn.map'\" $fn -o $fn; done", "build": "rm -Rf lib/* && tsc && npm run remove-unused-declarations && npm run flow-type-gen && npm run minimize-lib-files && npm run test:lib", "prepublishOnly": "npm run build" }, "files": [ "lib", "src", "LICENSE" ], "husky": { "hooks": { "pre-commit": "npm run lint && npm run test" } }, "license": "MIT" }