package.json 2.2 KB

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