package.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "name": "stringify-entities",
  3. "version": "4.0.4",
  4. "description": "Serialize (encode) HTML character references",
  5. "license": "MIT",
  6. "keywords": [
  7. "stringify",
  8. "encode",
  9. "escape",
  10. "html",
  11. "character",
  12. "reference",
  13. "entity",
  14. "entities"
  15. ],
  16. "repository": "wooorm/stringify-entities",
  17. "bugs": "https://github.com/wooorm/stringify-entities/issues",
  18. "funding": {
  19. "type": "github",
  20. "url": "https://github.com/sponsors/wooorm"
  21. },
  22. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  23. "contributors": [
  24. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  25. ],
  26. "sideEffects": false,
  27. "type": "module",
  28. "main": "index.js",
  29. "types": "index.d.ts",
  30. "files": [
  31. "lib/",
  32. "index.d.ts",
  33. "index.js"
  34. ],
  35. "dependencies": {
  36. "character-entities-html4": "^2.0.0",
  37. "character-entities-legacy": "^3.0.0"
  38. },
  39. "devDependencies": {
  40. "@types/node": "^20.0.0",
  41. "c8": "^9.0.0",
  42. "character-entities": "^2.0.0",
  43. "prettier": "^3.0.0",
  44. "remark-cli": "^11.0.0",
  45. "remark-preset-wooorm": "^9.0.0",
  46. "type-coverage": "^2.0.0",
  47. "typescript": "^5.0.0",
  48. "xo": "^0.58.0"
  49. },
  50. "scripts": {
  51. "prepack": "npm run build && npm run format",
  52. "generate": "node --conditions development build.js",
  53. "build": "tsc --build --clean && tsc --build && type-coverage",
  54. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  55. "test-api": "node --conditions development test.js",
  56. "test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
  57. "test": "npm run generate && npm run build && npm run format && npm run test-coverage"
  58. },
  59. "prettier": {
  60. "tabWidth": 2,
  61. "useTabs": false,
  62. "singleQuote": true,
  63. "bracketSpacing": false,
  64. "semi": false,
  65. "trailingComma": "none"
  66. },
  67. "xo": {
  68. "prettier": true,
  69. "rules": {
  70. "unicorn/prefer-code-point": "off",
  71. "unicorn/prefer-string-replace-all": "off",
  72. "unicorn/numeric-separators-style": "off"
  73. }
  74. },
  75. "remarkConfig": {
  76. "plugins": [
  77. "preset-wooorm"
  78. ]
  79. },
  80. "typeCoverage": {
  81. "atLeast": 100,
  82. "detail": true,
  83. "strict": true,
  84. "ignoreCatch": true
  85. }
  86. }