package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "name": "formidable",
  3. "version": "3.5.4",
  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": "pnpm 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": "pnpm run fmt:prepare '**/*'",
  56. "fmt:prepare": "prettier --write",
  57. "lint": "pnpm run lint:prepare .",
  58. "lint:prepare": "eslint --cache --fix --quiet --format codeframe",
  59. "fresh": "rm -rf ./node_modules",
  60. "test-specific": "node --disable-warning=ExperimentalWarning --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/standalone/keep-alive-error.test.js",
  61. "test-jest": "node --disable-warning=ExperimentalWarning --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/ --coverage",
  62. "test-node": "node --disable-warning=ExperimentalWarning --test ./test-node/**/*.test.js",
  63. "test-jest:ci": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/ --coverage",
  64. "test:local": "pnpm run test-node && pnpm run test-jest",
  65. "audit": "pnpm audit --prod --fix",
  66. "pretest": "rm -rf ./test/tmp && mkdir ./test/tmp",
  67. "test": "pnpm run audit && node --test ./test-node/**/*.test.js && pnpm run test-jest:ci"
  68. },
  69. "dependencies": {
  70. "@paralleldrive/cuid2": "^2.2.2",
  71. "dezalgo": "^1.0.4",
  72. "once": "^1.4.0"
  73. },
  74. "packageManager": "pnpm@10.8.1",
  75. "devDependencies": {
  76. "@rollup/plugin-commonjs": "^25.0.2",
  77. "@rollup/plugin-node-resolve": "^15.1.0",
  78. "@sindresorhus/slugify": "^2.1.0",
  79. "@tunnckocore/prettier-config": "1.3.8",
  80. "eslint": "6.8.0",
  81. "eslint-config-airbnb-base": "14.1.0",
  82. "eslint-config-prettier": "6.11.0",
  83. "eslint-plugin-import": "2.20.2",
  84. "eslint-plugin-prettier": "3.1.3",
  85. "express": "^4.21.1",
  86. "formdata-polyfill": "^4.0.10",
  87. "jest": "27.2.4",
  88. "koa": "2.16.1",
  89. "nyc": "15.1.0",
  90. "prettier": "2.0.5",
  91. "prettier-plugin-pkgjson": "0.2.8",
  92. "rollup": "^3.25.3",
  93. "supertest": "6.1.6"
  94. },
  95. "engines": {
  96. "node": ">=14.0.0"
  97. },
  98. "jest": {
  99. "verbose": true
  100. },
  101. "keywords": [
  102. "multipart",
  103. "form",
  104. "data",
  105. "querystring",
  106. "www",
  107. "json",
  108. "ulpoad",
  109. "file"
  110. ]
  111. }