package.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "name": "entities",
  3. "version": "2.2.0",
  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. "devDependencies": {
  25. "@types/jest": "^26.0.0",
  26. "@types/node": "^14.11.8",
  27. "@typescript-eslint/eslint-plugin": "^4.4.1",
  28. "@typescript-eslint/parser": "^4.4.1",
  29. "coveralls": "*",
  30. "eslint": "^7.11.0",
  31. "eslint-config-prettier": "^7.0.0",
  32. "eslint-plugin-node": "^11.1.0",
  33. "jest": "^26.5.3",
  34. "prettier": "^2.0.5",
  35. "ts-jest": "^26.1.0",
  36. "typescript": "^4.0.2"
  37. },
  38. "scripts": {
  39. "test": "jest --coverage && npm run lint",
  40. "coverage": "cat coverage/lcov.info | coveralls",
  41. "lint": "npm run lint:es && npm run lint:prettier",
  42. "lint:es": "eslint .",
  43. "lint:prettier": "npm run prettier -- --check",
  44. "format": "npm run format:es && npm run format:prettier",
  45. "format:es": "npm run lint:es -- --fix",
  46. "format:prettier": "npm run prettier -- --write",
  47. "prettier": "prettier '**/*.{ts,md,json,yml}'",
  48. "build": "tsc && cp -r src/maps lib",
  49. "prepare": "npm run build"
  50. },
  51. "repository": {
  52. "type": "git",
  53. "url": "git://github.com/fb55/entities.git"
  54. },
  55. "license": "BSD-2-Clause",
  56. "jest": {
  57. "preset": "ts-jest",
  58. "testEnvironment": "node"
  59. },
  60. "prettier": {
  61. "tabWidth": 4,
  62. "proseWrap": "always"
  63. }
  64. }