package.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "name": "domhandler",
  3. "version": "5.0.3",
  4. "description": "Handler for htmlparser2 that turns pages into a dom",
  5. "author": "Felix Boehm <me@feedic.com>",
  6. "funding": {
  7. "url": "https://github.com/fb55/domhandler?sponsor=1"
  8. },
  9. "license": "BSD-2-Clause",
  10. "main": "lib/index.js",
  11. "types": "lib/index.d.ts",
  12. "module": "lib/esm/index.js",
  13. "exports": {
  14. "require": "./lib/index.js",
  15. "import": "./lib/esm/index.js"
  16. },
  17. "sideEffects": false,
  18. "files": [
  19. "lib"
  20. ],
  21. "scripts": {
  22. "test": "npm run test:jest && npm run lint",
  23. "test:jest": "jest",
  24. "lint": "npm run lint:es && npm run lint:prettier",
  25. "lint:es": "eslint --ignore-path .gitignore .",
  26. "lint:prettier": "npm run prettier -- --check",
  27. "format": "npm run format:es && npm run format:prettier",
  28. "format:es": "npm run lint:es -- --fix",
  29. "format:prettier": "npm run prettier -- --write",
  30. "prettier": "prettier \"**/*.{ts,md,json,yml}\" --ignore-path .gitignore",
  31. "build": "npm run build:cjs && npm run build:esm",
  32. "build:cjs": "tsc",
  33. "build:esm": "tsc --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
  34. "prepare": "npm run build"
  35. },
  36. "repository": {
  37. "type": "git",
  38. "url": "git://github.com/fb55/domhandler.git"
  39. },
  40. "keywords": [
  41. "dom",
  42. "htmlparser2"
  43. ],
  44. "engines": {
  45. "node": ">= 4"
  46. },
  47. "dependencies": {
  48. "domelementtype": "^2.3.0"
  49. },
  50. "devDependencies": {
  51. "@types/jest": "^27.4.1",
  52. "@types/node": "^17.0.30",
  53. "@typescript-eslint/eslint-plugin": "^5.21.0",
  54. "@typescript-eslint/parser": "^5.21.0",
  55. "eslint": "^8.14.0",
  56. "eslint-config-prettier": "^8.5.0",
  57. "htmlparser2": "^8.0.0",
  58. "jest": "^27.5.1",
  59. "prettier": "^2.6.2",
  60. "ts-jest": "^27.1.4",
  61. "typescript": "^4.6.4"
  62. },
  63. "jest": {
  64. "preset": "ts-jest",
  65. "testEnvironment": "node",
  66. "moduleNameMapper": {
  67. "^(.*)\\.js$": "$1"
  68. }
  69. },
  70. "prettier": {
  71. "tabWidth": 4
  72. }
  73. }