package.json 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "name": "htmlparser2",
  3. "description": "Fast & forgiving HTML/XML parser",
  4. "version": "8.0.1",
  5. "author": "Felix Boehm <me@feedic.com>",
  6. "funding": [
  7. "https://github.com/fb55/htmlparser2?sponsor=1",
  8. {
  9. "type": "github",
  10. "url": "https://github.com/sponsors/fb55"
  11. }
  12. ],
  13. "license": "MIT",
  14. "sideEffects": false,
  15. "keywords": [
  16. "html",
  17. "parser",
  18. "streams",
  19. "xml",
  20. "dom",
  21. "rss",
  22. "feed",
  23. "atom"
  24. ],
  25. "repository": {
  26. "type": "git",
  27. "url": "git://github.com/fb55/htmlparser2.git"
  28. },
  29. "directories": {
  30. "lib": "lib/"
  31. },
  32. "main": "lib/index.js",
  33. "types": "lib/index.d.ts",
  34. "module": "lib/esm/index.js",
  35. "exports": {
  36. ".": {
  37. "require": "./lib/index.js",
  38. "import": "./lib/esm/index.js"
  39. },
  40. "./lib/WritableStream": {
  41. "require": "./lib/WritableStream.js",
  42. "import": "./lib/esm/WritableStream.js"
  43. }
  44. },
  45. "files": [
  46. "lib/**/*"
  47. ],
  48. "scripts": {
  49. "test": "npm run test:jest && npm run lint",
  50. "test:jest": "jest",
  51. "lint": "npm run lint:es && npm run lint:prettier",
  52. "lint:es": "eslint src",
  53. "lint:prettier": "npm run format:prettier:raw -- --check",
  54. "format": "npm run format:es && npm run format:prettier",
  55. "format:es": "npm run lint:es -- --fix",
  56. "format:prettier": "npm run format:prettier:raw -- --write",
  57. "format:prettier:raw": "prettier '**/*.{ts,md,json,yml}'",
  58. "build": "npm run build:cjs && npm run build:esm",
  59. "build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/fb55/htmlparser2/$(git rev-parse HEAD)/src/",
  60. "build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
  61. "prepare": "npm run build"
  62. },
  63. "dependencies": {
  64. "domelementtype": "^2.3.0",
  65. "domhandler": "^5.0.2",
  66. "domutils": "^3.0.1",
  67. "entities": "^4.3.0"
  68. },
  69. "devDependencies": {
  70. "@types/jest": "^27.4.1",
  71. "@types/node": "^17.0.30",
  72. "@typescript-eslint/eslint-plugin": "^5.21.0",
  73. "@typescript-eslint/parser": "^5.21.0",
  74. "eslint": "^8.14.0",
  75. "eslint-config-prettier": "^8.5.0",
  76. "jest": "^27.5.1",
  77. "prettier": "^2.6.2",
  78. "ts-jest": "^27.1.4",
  79. "typescript": "^4.6.4"
  80. },
  81. "jest": {
  82. "preset": "ts-jest",
  83. "testEnvironment": "node",
  84. "coverageProvider": "v8",
  85. "moduleNameMapper": {
  86. "^(.*)\\.js$": "$1"
  87. }
  88. },
  89. "prettier": {
  90. "tabWidth": 4
  91. }
  92. }