{"_id":"fetch-shim","_rev":"3184284","name":"fetch-shim","description":"An isomoprhic Fetch function, it just gives you the native one if available, or the one from undici.","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"time":{"modified":"2023-12-06T08:50:12.000Z","created":"2022-06-01T12:16:08.563Z","1.1.1":"2023-02-16T01:11:57.275Z","1.1.0":"2022-06-01T12:21:18.591Z","1.0.0":"2022-06-01T12:16:08.563Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/fetch-shim.git"},"versions":{"1.1.1":{"name":"fetch-shim","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/fetch-shim.git"},"description":"An isomoprhic Fetch function, it just gives you the native one if available, or the one from undici.","version":"1.1.1","type":"module","main":"dist/browser.js","types":"./dist/browser.d.ts","exports":{".":{"node":"./dist/node.js","default":"./dist/browser.js"},"./register":{"node":"./dist/register/node.js","default":"./dist/register/browser.js"}},"scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["fetch","shim","isomorphic","web","node"],"dependencies":{"undici":"^5.19.1"},"devDependencies":{"fava":"^0.2.0","tsex":"^2.2.0","typescript":"^4.9.5"},"gitHead":"f26661df1ba50588822cfd760359e2b4055f7704","bugs":{"url":"https://github.com/fabiospampinato/fetch-shim/issues"},"homepage":"https://github.com/fabiospampinato/fetch-shim#readme","_id":"fetch-shim@1.1.1","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"21282e0eed5c930b93cf442b8dcf693ab90b37fe","size":2203,"noattachment":false,"key":"/fetch-shim/-/fetch-shim-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fetch-shim/download/fetch-shim-1.1.1.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-shim_1.1.1_1676509917098_0.4402112153427924"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-16T01:11:57.275Z","publish_time":1676509917275,"_cnpm_publish_time":1676509917275},"1.1.0":{"name":"fetch-shim","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/fetch-shim.git"},"description":"A tiny isomoprhic Fetch function, it just gives you the native one if available, or the one from undici.","version":"1.1.0","type":"module","main":"dist/browser.js","types":"./dist/browser.d.ts","exports":{".":{"node":"./dist/node.js","default":"./dist/browser.js"},"./register":{"node":"./dist/register/node.js","default":"./dist/register/browser.js"}},"scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"keywords":["fetch","shim","isomorphic","web","node"],"dependencies":{"undici":"^5.4.0"},"devDependencies":{"fava":"^0.0.6","tsex":"^1.1.2","typescript":"^4.7.2"},"gitHead":"51e26820922fa7f46984ff14e2b8ef2481713ac8","bugs":{"url":"https://github.com/fabiospampinato/fetch-shim/issues"},"homepage":"https://github.com/fabiospampinato/fetch-shim#readme","_id":"fetch-shim@1.1.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"5a73b0292c40422fc9416aa95f53345734ee7a56","size":2614,"noattachment":false,"key":"/fetch-shim/-/fetch-shim-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fetch-shim/download/fetch-shim-1.1.0.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-shim_1.1.0_1654086078476_0.9399321001479406"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-01T12:26:03.129Z","publish_time":1654086078591,"_cnpm_publish_time":1654086078591},"1.0.0":{"name":"fetch-shim","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/fetch-shim.git"},"description":"A tiny isomoprhic Fetch function, it just gives you the native one if available, or the one from undici.","version":"1.0.0","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"keywords":["fetch","shim","isomorphic","web","node"],"dependencies":{"undici":"^5.4.0"},"devDependencies":{"fava":"^0.0.6","tsex":"^1.1.2","typescript":"^4.7.2"},"bugs":{"url":"https://github.com/fabiospampinato/fetch-shim/issues"},"homepage":"https://github.com/fabiospampinato/fetch-shim#readme","_id":"fetch-shim@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"e074231e4fbc0eea0f9ea9a6ba47fd47562a4865","size":2371,"noattachment":false,"key":"/fetch-shim/-/fetch-shim-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fetch-shim/download/fetch-shim-1.0.0.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-shim_1.0.0_1654085768384_0.37245980413117064"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-01T12:26:02.857Z","publish_time":1654085768563,"_cnpm_publish_time":1654085768563}},"readme":"# Fetch Shim\n\nAn isomoprhic Fetch function, it just gives you the native one if available, or the one from [`undici`](https://github.com/nodejs/undici).\n\n## Install\n\n```sh\nnpm install --save fetch-shim\n```\n\n## Usage\n\n```ts\nimport fetch from 'fetch-shim';\n\nconst response = await fetch ( 'https://jsonplaceholder.typicode.com/todos/1' );\nconst json = await response.json ();\n\nconsole.log ( json ); // => { userId: 1, id: 1, title: 'delectus aut autem', completed: false }\n```\n\n## License\n\nMIT © Fabio Spampinato\n","_attachments":{},"homepage":"https://github.com/fabiospampinato/fetch-shim#readme","bugs":{"url":"https://github.com/fabiospampinato/fetch-shim/issues"}}