package.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "name": "html-entities",
  3. "version": "2.4.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. "@types/benchmark": "^2.1.0",
  30. "@types/chai": "^4.2.11",
  31. "@types/he": "^1.1.1",
  32. "@types/mocha": "^7.0.2",
  33. "@types/node": "^13.13.4",
  34. "@typescript-eslint/eslint-plugin": "^4.6.1",
  35. "@typescript-eslint/parser": "^4.6.1",
  36. "benchmark": "^2.1.4",
  37. "chai": "^4.2.0",
  38. "entities": "^4.5.0",
  39. "eslint": "^7.12.1",
  40. "eslint-config-prettier": "^6.15.0",
  41. "eslint-plugin-import": "^2.22.1",
  42. "eslint-plugin-prettier": "^3.1.4",
  43. "flowgen": "^1.13.0",
  44. "he": "^1.2.0",
  45. "husky": "^4.3.6",
  46. "mocha": "^9.2.2",
  47. "prettier": "^2.1.2",
  48. "terser": "^5.6.1",
  49. "ts-node": "^8.9.1",
  50. "ttypescript": "^1.5.15",
  51. "typescript": "^3.8.3",
  52. "typescript-transform-macros": "^1.1.1"
  53. },
  54. "repository": {
  55. "type": "git",
  56. "url": "https://github.com/mdevils/html-entities.git"
  57. },
  58. "sideEffects": false,
  59. "main": "./lib/index.js",
  60. "typings": "./lib/index.d.ts",
  61. "types": "./lib/index.d.ts",
  62. "scripts": {
  63. "test": "TS_NODE_COMPILER=ttypescript mocha --recursive -r ts-node/register test/**/*.ts",
  64. "test:lib": "TEST_LIB=1 npm run test",
  65. "benchmark": "TS_NODE_COMPILER=ttypescript ts-node benchmark/benchmark",
  66. "lint": "eslint src/**.ts",
  67. "flow-type-gen": "flowgen --add-flow-header lib/index.d.ts -o lib/index.js.flow",
  68. "remove-unused-declarations": "find lib -type f \\( -name '*.d.ts' ! -name index.d.ts \\) | xargs rm",
  69. "minimize-lib-files": "find lib -type f \\( -name '*.js' ! -name index.js \\) | while read fn; do terser $fn -o $fn; done",
  70. "build": "rm -Rf lib/* && ttsc && npm run remove-unused-declarations && npm run flow-type-gen && npm run minimize-lib-files && npm run test:lib",
  71. "prepublishOnly": "npm run build"
  72. },
  73. "files": [
  74. "lib",
  75. "LICENSE"
  76. ],
  77. "husky": {
  78. "hooks": {
  79. "pre-commit": "npm run lint && npm run test"
  80. }
  81. },
  82. "license": "MIT"
  83. }