package.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "formdata-node",
  3. "version": "4.4.1",
  4. "description": "Spec-compliant FormData implementation for Node.js",
  5. "repository": "octet-stream/form-data",
  6. "sideEffects": false,
  7. "keywords": [
  8. "form-data",
  9. "node",
  10. "form",
  11. "upload",
  12. "files-upload",
  13. "ponyfill"
  14. ],
  15. "author": "Nick K. <io@octetstream.me>",
  16. "license": "MIT",
  17. "main": "./lib/cjs/index.js",
  18. "module": "./lib/esm/browser.js",
  19. "browser": "./lib/cjs/browser.js",
  20. "exports": {
  21. "./package.json": "./package.json",
  22. ".": {
  23. "node": {
  24. "types": "./@type/index.d.ts",
  25. "import": "./lib/esm/index.js",
  26. "require": "./lib/cjs/index.js"
  27. },
  28. "browser": {
  29. "types": "./@type/browser.d.ts",
  30. "import": "./lib/esm/browser.js",
  31. "require": "./lib/cjs/browser.js"
  32. },
  33. "default": "./lib/esm/index.js"
  34. },
  35. "./file-from-path": {
  36. "types": "./@type/fileFromPath.d.ts",
  37. "import": "./lib/esm/fileFromPath.js",
  38. "require": "./lib/cjs/fileFromPath.js"
  39. }
  40. },
  41. "types": "./@type/index.d.ts",
  42. "typesVersions": {
  43. "*": {
  44. "file-from-path": [
  45. "@type/fileFromPath.d.ts"
  46. ]
  47. }
  48. },
  49. "engines": {
  50. "node": ">= 12.20"
  51. },
  52. "scripts": {
  53. "eslint": "eslint lib/**/*.ts",
  54. "staged": "lint-staged",
  55. "coverage": "c8 npm test",
  56. "report:html": "c8 -r=html npm test",
  57. "ci": "c8 npm test && c8 report --reporter=json",
  58. "build:esm": "ttsc --project tsconfig.esm.json",
  59. "build:cjs": "ttsc --project tsconfig.cjs.json",
  60. "build:types": "ttsc --project tsconfig.d.ts.json",
  61. "build": "npm run build:esm && npm run build:cjs && npm run build:types",
  62. "test": "ava --fail-fast",
  63. "cleanup": "npx rimraf @type \"lib/**/*.js\"",
  64. "prepare": "npm run cleanup && npm run build",
  65. "husky": "husky install"
  66. },
  67. "devDependencies": {
  68. "@octetstream/eslint-config": "5.0.0",
  69. "@types/node": "17.0.19",
  70. "@types/sinon": "10.0.11",
  71. "@typescript-eslint/eslint-plugin": "4.32.0",
  72. "@typescript-eslint/parser": "4.32.0",
  73. "@zoltu/typescript-transformer-append-js-extension": "1.0.1",
  74. "ava": "4.0.1",
  75. "c8": "7.12.0",
  76. "eslint": "7.32.0",
  77. "eslint-config-airbnb-typescript": "12.3.1",
  78. "eslint-import-resolver-typescript": "2.5.0",
  79. "eslint-plugin-ava": "12.0.0",
  80. "eslint-plugin-jsx-a11y": "6.4.1",
  81. "eslint-plugin-react": "7.26.1",
  82. "husky": "7.0.4",
  83. "lint-staged": "12.3.4",
  84. "rimraf": "^3.0.2",
  85. "sinon": "13.0.1",
  86. "ts-node": "10.5.0",
  87. "ttypescript": "1.5.13",
  88. "typescript": "4.5.5"
  89. },
  90. "dependencies": {
  91. "node-domexception": "1.0.0",
  92. "web-streams-polyfill": "4.0.0-beta.3"
  93. }
  94. }