package.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "name": "html-entities",
  3. "version": "2.5.2",
  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. "typescript": "^3.8.3"
  51. },
  52. "repository": {
  53. "type": "git",
  54. "url": "https://github.com/mdevils/html-entities.git"
  55. },
  56. "sideEffects": false,
  57. "main": "./lib/index.js",
  58. "typings": "./lib/index.d.ts",
  59. "types": "./lib/index.d.ts",
  60. "scripts": {
  61. "test": "mocha --recursive -r ts-node/register test/**/*.ts",
  62. "test:watch": "mocha -w --recursive -r ts-node/register test/**/*.ts",
  63. "test:lib": "TEST_LIB=1 npm run test",
  64. "benchmark": "ts-node benchmark/benchmark",
  65. "lint": "eslint src/**.ts",
  66. "flow-type-gen": "flowgen --add-flow-header lib/index.d.ts -o lib/index.js.flow",
  67. "remove-unused-declarations": "find lib -type f \\( -name '*.d.ts' ! -name index.d.ts \\) | xargs rm",
  68. "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",
  69. "build": "rm -Rf lib/* && tsc && npm run remove-unused-declarations && npm run flow-type-gen && npm run minimize-lib-files && npm run test:lib",
  70. "prepublishOnly": "npm run build"
  71. },
  72. "files": [
  73. "lib",
  74. "src",
  75. "LICENSE"
  76. ],
  77. "husky": {
  78. "hooks": {
  79. "pre-commit": "npm run lint && npm run test"
  80. }
  81. },
  82. "license": "MIT"
  83. }