package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. "name": "formidable",
  3. "version": "3.5.2",
  4. "license": "MIT",
  5. "description": "A node.js module for parsing form data, especially file uploads.",
  6. "homepage": "https://github.com/node-formidable/formidable",
  7. "funding": "https://ko-fi.com/tunnckoCore/commissions",
  8. "repository": "node-formidable/formidable",
  9. "type": "module",
  10. "main": "./dist/index.cjs",
  11. "exports": {
  12. ".": {
  13. "import": {
  14. "default": "./src/index.js"
  15. },
  16. "require": {
  17. "default": "./dist/index.cjs"
  18. },
  19. "default": "./dist/index.cjs"
  20. },
  21. "./src/helpers/*.js": {
  22. "import": {
  23. "default": "./src/helpers/*.js"
  24. },
  25. "require": {
  26. "default": "./dist/helpers/*.cjs"
  27. }
  28. },
  29. "./src/parsers/*.js": {
  30. "import": {
  31. "default": "./src/parsers/*.js"
  32. },
  33. "require": {
  34. "default": "./dist/index.cjs"
  35. }
  36. }
  37. },
  38. "files": [
  39. "src",
  40. "./dist",
  41. "./CHANGELOG",
  42. "./README.md",
  43. "./README_pt_BR.md"
  44. ],
  45. "publishConfig": {
  46. "access": "public",
  47. "tag": "latest"
  48. },
  49. "scripts": {
  50. "build-package": "rollup --config ./tool/rollup.config.js",
  51. "prepublishOnly": "npm run build-package",
  52. "bench": "node benchmark",
  53. "bench2prep": "node benchmark/server.js",
  54. "bench2": "bombardier --body-file=\"./README.md\" --method=POST --duration=10s --connections=100 http://localhost:3000/api/upload",
  55. "fmt": "yarn run fmt:prepare '**/*'",
  56. "fmt:prepare": "prettier --write",
  57. "lint": "yarn run lint:prepare .",
  58. "lint:prepare": "eslint --cache --fix --quiet --format codeframe",
  59. "reinstall": "del-cli ./node_modules ./yarn.lock",
  60. "postreinstall": "yarn setup",
  61. "setup": "yarn",
  62. "pretest": "del-cli ./test/tmp && make-dir ./test/tmp",
  63. "test-specific": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/standalone/keep-alive-error.test.js",
  64. "test": "npm run test-jest && npm run test-node",
  65. "test-jest": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/ --coverage",
  66. "test-node": "node --test test-node/",
  67. "pretest:ci": "yarn run pretest",
  68. "test:ci": "node --experimental-vm-modules node_modules/.bin/nyc jest --testPathPattern=test/ --coverage && node --experimental-vm-modules node_modules/.bin/nyc node --test test-node/"
  69. },
  70. "dependencies": {
  71. "dezalgo": "^1.0.4",
  72. "hexoid": "^2.0.0",
  73. "once": "^1.4.0"
  74. },
  75. "devDependencies": {
  76. "@commitlint/cli": "8.3.5",
  77. "@commitlint/config-conventional": "8.3.4",
  78. "@rollup/plugin-commonjs": "^25.0.2",
  79. "@rollup/plugin-node-resolve": "^15.1.0",
  80. "@sindresorhus/slugify": "^2.1.0",
  81. "@tunnckocore/prettier-config": "1.3.8",
  82. "del-cli": "3.0.0",
  83. "eslint": "6.8.0",
  84. "eslint-config-airbnb-base": "14.1.0",
  85. "eslint-config-prettier": "6.11.0",
  86. "eslint-plugin-import": "2.20.2",
  87. "eslint-plugin-prettier": "3.1.3",
  88. "express": "4.17.1",
  89. "formdata-polyfill": "^4.0.10",
  90. "husky": "4.2.5",
  91. "jest": "27.2.4",
  92. "koa": "2.11.0",
  93. "lint-staged": "10.2.7",
  94. "make-dir-cli": "2.0.0",
  95. "nyc": "15.1.0",
  96. "prettier": "2.0.5",
  97. "prettier-plugin-pkgjson": "0.2.8",
  98. "rollup": "^3.25.3",
  99. "supertest": "6.1.6"
  100. },
  101. "jest": {
  102. "verbose": true
  103. },
  104. "husky": {
  105. "hooks": {
  106. "pre-commit": "git status --porcelain && yarn lint-staged",
  107. "commit-msg": "yarn commitlint -E HUSKY_GIT_PARAMS"
  108. }
  109. },
  110. "commitlint": {
  111. "extends": [
  112. "@commitlint/config-conventional"
  113. ]
  114. },
  115. "lint-staged": {
  116. "!*.{js,jsx,ts,tsx}": [
  117. "yarn run fmt:prepare"
  118. ],
  119. "*.{js,jsx,ts,tsx}": [
  120. "yarn run lint"
  121. ]
  122. },
  123. "renovate": {
  124. "extends": [
  125. "@tunnckocore",
  126. ":pinAllExceptPeerDependencies"
  127. ]
  128. },
  129. "packageManager": "yarn@1.22.17",
  130. "keywords": [
  131. "multipart",
  132. "form",
  133. "data",
  134. "querystring",
  135. "www",
  136. "json",
  137. "ulpoad",
  138. "file"
  139. ]
  140. }