package.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "name": "entities",
  3. "version": "3.0.1",
  4. "description": "Encode & decode XML and HTML entities with ease",
  5. "author": "Felix Boehm <me@feedic.com>",
  6. "funding": "https://github.com/fb55/entities?sponsor=1",
  7. "sideEffects": false,
  8. "keywords": [
  9. "entity",
  10. "decoding",
  11. "encoding",
  12. "html",
  13. "xml",
  14. "html entities"
  15. ],
  16. "directories": {
  17. "lib": "lib/"
  18. },
  19. "main": "lib/index.js",
  20. "types": "lib/index.d.ts",
  21. "files": [
  22. "lib/**/*"
  23. ],
  24. "engines": {
  25. "node": ">=0.12"
  26. },
  27. "devDependencies": {
  28. "@types/jest": "^26.0.24",
  29. "@types/node": "^16.4.13",
  30. "@typescript-eslint/eslint-plugin": "^4.29.0",
  31. "@typescript-eslint/parser": "^4.29.0",
  32. "eslint": "^7.32.0",
  33. "eslint-config-prettier": "^8.1.0",
  34. "eslint-plugin-node": "^11.1.0",
  35. "jest": "^27.0.3",
  36. "prettier": "^2.0.5",
  37. "ts-jest": "^27.0.4",
  38. "typescript": "^4.0.2"
  39. },
  40. "scripts": {
  41. "test": "npm run test:jest && npm run lint",
  42. "test:jest": "jest",
  43. "lint": "npm run lint:es && npm run lint:prettier",
  44. "lint:es": "eslint .",
  45. "lint:prettier": "npm run prettier -- --check",
  46. "format": "npm run format:es && npm run format:prettier",
  47. "format:es": "npm run lint:es -- --fix",
  48. "format:prettier": "npm run prettier -- --write",
  49. "prettier": "prettier '**/*.{ts,md,json,yml}'",
  50. "build": "tsc && cp -r src/maps lib",
  51. "prepare": "npm run build"
  52. },
  53. "repository": {
  54. "type": "git",
  55. "url": "git://github.com/fb55/entities.git"
  56. },
  57. "license": "BSD-2-Clause",
  58. "jest": {
  59. "preset": "ts-jest",
  60. "testEnvironment": "node",
  61. "coverageProvider": "v8"
  62. },
  63. "prettier": {
  64. "tabWidth": 4,
  65. "proseWrap": "always"
  66. }
  67. }