package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "parse-entities",
  3. "version": "2.0.0",
  4. "description": "Parse HTML character references: fast, spec-compliant, positional information",
  5. "license": "MIT",
  6. "keywords": [
  7. "parse",
  8. "html",
  9. "character",
  10. "reference",
  11. "entity",
  12. "entities"
  13. ],
  14. "repository": "wooorm/parse-entities",
  15. "bugs": "https://github.com/wooorm/parse-entities/issues",
  16. "funding": {
  17. "type": "github",
  18. "url": "https://github.com/sponsors/wooorm"
  19. },
  20. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  21. "contributors": [
  22. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  23. ],
  24. "browser": {
  25. "./decode-entity.js": "./decode-entity.browser.js"
  26. },
  27. "react-native": {
  28. "./decode-entity.js": "./decode-entity.js"
  29. },
  30. "files": [
  31. "index.js",
  32. "decode-entity.js",
  33. "decode-entity.browser.js",
  34. "types/index.d.ts"
  35. ],
  36. "types": "types/index.d.ts",
  37. "dependencies": {
  38. "character-entities": "^1.0.0",
  39. "character-entities-legacy": "^1.0.0",
  40. "character-reference-invalid": "^1.0.0",
  41. "is-alphanumerical": "^1.0.0",
  42. "is-decimal": "^1.0.0",
  43. "is-hexadecimal": "^1.0.0"
  44. },
  45. "devDependencies": {
  46. "browserify": "^16.0.0",
  47. "dtslint": "^2.0.0",
  48. "nyc": "^15.0.0",
  49. "prettier": "^1.0.0",
  50. "remark-cli": "^7.0.0",
  51. "remark-preset-wooorm": "^6.0.0",
  52. "tape": "^4.0.0",
  53. "tape-run": "^6.0.0",
  54. "tinyify": "^2.0.0",
  55. "xo": "^0.25.0"
  56. },
  57. "scripts": {
  58. "format": "remark . -qfo && prettier --write \"**/*.{js,ts}\" && xo --fix",
  59. "build-bundle": "browserify . -s parseEntities > parse-entities.js",
  60. "build-mangle": "browserify . -s parseEntities -p tinyify > parse-entities.min.js",
  61. "build": "npm run build-bundle && npm run build-mangle",
  62. "test-api": "node test",
  63. "test-coverage": "nyc --reporter lcov tape test.js",
  64. "test-browser": "browserify test.js | tape-run",
  65. "test-types": "dtslint types",
  66. "test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
  67. },
  68. "nyc": {
  69. "check-coverage": true,
  70. "lines": 100,
  71. "functions": 100,
  72. "branches": 100
  73. },
  74. "prettier": {
  75. "tabWidth": 2,
  76. "useTabs": false,
  77. "singleQuote": true,
  78. "bracketSpacing": false,
  79. "semi": false,
  80. "trailingComma": "none"
  81. },
  82. "xo": {
  83. "prettier": true,
  84. "esnext": false,
  85. "rules": {
  86. "no-self-compare": "off",
  87. "guard-for-in": "off",
  88. "max-depth": "off"
  89. },
  90. "ignores": [
  91. "parse-entities.js"
  92. ]
  93. },
  94. "remarkConfig": {
  95. "plugins": [
  96. "preset-wooorm"
  97. ]
  98. }
  99. }