{"name":"wretch","version":"3.0.1","type":"module","description":"A tiny wrapper built around fetch with an intuitive syntax.","keywords":["wretch","fetch","ajax","request"],"engines":{"node":">=22"},"homepage":"https://elbywan.github.io/wretch","repository":{"type":"git","url":"git+https://github.com/elbywan/wretch.git"},"bugs":{"url":"https://github.com/elbywan/wretch/issues"},"main":"./dist/bundle/wretch.min.cjs","unpkg":"./dist/bundle/wretch.min.js","module":"./dist/index.js","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["dist/*","dist/*/index.d.ts","dist/index.d.ts"]}},"exports":{".":{"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.cjs"},"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./all":{"require":{"types":"./dist/cjs/index.all.d.ts","default":"./dist/cjs/index.all.js"},"import":{"types":"./dist/index.all.d.ts","default":"./dist/index.all.js"}},"./addons":{"require":{"types":"./dist/cjs/addons/index.d.ts","default":"./dist/cjs/addons/index.js"},"import":{"types":"./dist/addons/index.d.ts","default":"./dist/addons/index.js"}},"./addons/*":{"require":{"types":"./dist/cjs/addons/*.d.ts","default":"./dist/cjs/addons/*.js"},"import":{"types":"./dist/addons/*.d.ts","default":"./dist/addons/*.js"}},"./middlewares":{"require":{"types":"./dist/cjs/middlewares/index.d.ts","default":"./dist/cjs/middlewares/index.js"},"import":{"types":"./dist/middlewares/index.d.ts","default":"./dist/middlewares/index.js"}},"./middlewares/*":{"require":{"types":"./dist/cjs/middlewares/*.d.ts","default":"./dist/cjs/middlewares/*.js"},"import":{"types":"./dist/middlewares/*.d.ts","default":"./dist/middlewares/*.js"}},"./package.json":"./package.json","./*.mjs":{"default":"./dist/*.mjs"},"./*.cjs":{"default":"./dist/*.cjs"},"./*":{"default":"./dist/*.js"}},"sideEffects":false,"scripts":{"start":"npm run build && npm run test","lint":"eslint '{src,test}/**/*.{js,ts}'","lint:fix":"eslint '{src,test}/**/*.{js,ts}' --fix","prebuild":"rimraf dist && rimraf coverage && npm run lint","build":"tsc && tsc --project tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json && rolldown -c ./rolldown.config.ts","mock":"node scripts/mockServer.js","test":"npm run test:node && npm run test:browser && npm run test:deno && npm run test:bun && npm run test:snippets","test:node":"node scripts/runWithMockServer.js \"c8 node --import tsx --test test/node/*.spec.ts --test test/node/**/*.spec.ts\"","test:browser":"node scripts/runWithMockServer.js web-test-runner","test:browser:watch":"node scripts/runWithMockServer.js \"web-test-runner --watch\"","test:deno":"node scripts/runWithMockServer.js \"deno test --allow-net --allow-read --no-check --sloppy-imports --config test/deno/deno.json test/deno/wretch.spec.ts\"","test:bun":"node scripts/runWithMockServer.js \"bun test test/bun/wretch.spec.ts\"","test:snippets":"node --experimental-vm-modules --import tsx --test test/snippets/snippets.spec.ts","changelog":"conventional-changelog -p wretch -i CHANGELOG.md -s -r 0","doc":"typedoc --out docs/api --readme none --excludeInternal src/index.ts 'src/addons/*.ts' 'src/middlewares/*.ts'","prepare":"npm run build","prepare:release":"npm run start && npm run doc && npm run changelog"},"author":{"name":"Julien Elbaz"},"license":"MIT","devDependencies":{"@eslint/js":"^9.37.0","@fastify/basic-auth":"^6.2.0","@fastify/cors":"^11.1.0","@fastify/formbody":"^8.0.2","@fastify/multipart":"^9.2.1","@types/node":"^24.7.2","@web/dev-server-esbuild":"^1.0.4","@web/test-runner":"^0.20.2","@web/test-runner-playwright":"^0.11.1","c8":"^10.1.3","conventional-changelog-cli":"^2.2.2","conventional-changelog-wretch":"file:scripts/conventional-changelog-wretch","eslint":"^9.37.0","fastify":"^5.6.1","globals":"^16.4.0","rimraf":"^6.0.1","rolldown":"^1.0.0-beta.43","tslib":"^2.8.1","tsx":"^4.20.6","typedoc":"^0.28.14","typescript":"^5.9.3","typescript-eslint":"^8.46.1"},"gitHead":"66c0f09f07c4be036fa58f3c8cce064741067e26","_id":"wretch@3.0.1","_nodeVersion":"22.21.0","_npmVersion":"11.6.2","dist":{"shasum":"e5f279f6ecde0d1da45c643e442d6e61d8ee5c95","size":140513,"noattachment":false,"key":"/wretch/-/wretch-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wretch/download/wretch-3.0.1.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6298fa5a-995b-4b5f-82a2-6f06fc979051"}},"directories":{},"maintainers":[{"name":"elbywan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wretch_3.0.1_1761083476259_0.01339011851263594"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-21T21:51:16.505Z","publish_time":1761083476505,"_source_registry_name":"default","_cnpm_publish_time":1761083476505,"dist-tags":{"latest":"3.0.6","next":"2.0.0-next.1"}}