{"_id":"proto-fetch","_rev":"2-041fb9b884f01841cd02cd02c641257e","name":"proto-fetch","description":"Protocol handler wrapper for fetch","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"proto-fetch","version":"1.0.0","description":"Protocol handler wrapper for fetch","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git://github.com/bergos/file-fetch.git"},"keywords":["fetch","readable","stream","file","fs"],"author":{"name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org","url":"https://www.bergnet.org/people/bergi/card#me"},"license":"MIT","bugs":{"url":"https://github.com/bergos/proto-fetch/issues"},"homepage":"https://github.com/bergos/proto-fetch","dependencies":{},"devDependencies":{"mocha":"^4.0.1","standard":"^10.0.3"},"gitHead":"7ce743a758cd1df079f434f16fcce1fe75968cde","_id":"proto-fetch@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"maintainers":[{"name":"bergos","email":"bergi@axolotlfarm.org"}],"dist":{"integrity":"sha512-/geJK4y0HY+kmaZwf9mJ24BZrFXGCa+BEOUIkoEXBFONfAC0S2FH9xe2Q3yNDCBjhI1OT9h/GyNQvbXF+M3a0w==","shasum":"1693a29c8a9e3e66cf34475fd5469e002c968b54","tarball":"https://registry.npmjs.org/proto-fetch/-/proto-fetch-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFuKKFPTsTpPLoByA4QWYtg+87Fz9ZT2GWeIowCHSadAiEAkQuqGjXOGmoC0QeNkquIo4cjeF3ArPqv0ubI8ZxlEnA="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/proto-fetch-1.0.0.tgz_1508363741294_0.4739868431352079"},"directories":{}},"2.0.0":{"name":"proto-fetch","version":"2.0.0","description":"Protocol handler wrapper for fetch","type":"module","main":"index.js","scripts":{"test":"stricter-standard && c8 --reporter=lcov --reporter=text-summary mocha"},"repository":{"type":"git","url":"git+https://github.com/bergos/proto-fetch.git"},"keywords":["fetch","file","fs","readable","stream"],"author":{"name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org","url":"https://www.bergnet.org/people/bergi/card#me"},"license":"MIT","bugs":{"url":"https://github.com/bergos/proto-fetch/issues"},"homepage":"https://github.com/bergos/proto-fetch","devDependencies":{"c8":"^8.0.1","file-fetch":"^2.0.0","mocha":"^10.2.0","nodeify-fetch":"^3.1.0","stricter-standard":"^0.3.0"},"gitHead":"aaef0d3275b20a515a8edd071db1bb3321fa9db2","_id":"proto-fetch@2.0.0","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-QuhQVYN9WxCbJmfp/s3HLofEaDr/Jkq873++mo126XB2h+TFcKIGCIxeORH5ww9MOi2uP1SfWy4EgQH5PuBfdQ==","shasum":"c8f134adb940deb354b9c6208f30dafb24d650b3","tarball":"https://registry.npmjs.org/proto-fetch/-/proto-fetch-2.0.0.tgz","fileCount":7,"unpackedSize":6545,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFh5otnW0hGZXteYTky8GN/KUX2cSuKXwKYFnU+8yiLgIhAIKJuxz9pH0zX3aRjaBdzDdQrlpVouPAFvgEHFS887h9"}]},"_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"directories":{},"maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/proto-fetch_2.0.0_1700433051387_0.9741081506658973"},"_hasShrinkwrap":false}},"readme":"# proto-fetch\n\n[![build status](https://img.shields.io/github/actions/workflow/status/bergos/proto-fetch/test.yaml?branch=master)](https://github.com/bergos/proto-fetch/actions/workflows/test.yaml)\n[![npm version](https://img.shields.io/npm/v/proto-fetch.svg)](https://www.npmjs.com/package/proto-fetch)\n\nA protocol handler wrapper for fetch.\n\n## Usage\n\n`proto-fetch` doesn't contain any fetch implementations.\nA map of protocol to implementation must be given to the constructor.\nThis example shows how to create a fetch for file, http and https URLs:\n\n```javascript\nimport fileFetch from 'file-fetch'\nimport httpFetch from 'nodeify-fetch'\nimport protoFetch from 'proto-fetch'\n\nconst fetch = protoFetch({\n  [null]: fileFetch,\n  file: fileFetch,\n  http: httpFetch,\n  https: httpFetch\n})\n\nconst res = await fetch(`file://${process.cwd()}/package.json`)\n``` \n","maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"time":{"modified":"2023-11-19T22:30:51.727Z","created":"2017-10-18T21:55:42.324Z","1.0.0":"2017-10-18T21:55:42.324Z","2.0.0":"2023-11-19T22:30:51.545Z"},"homepage":"https://github.com/bergos/proto-fetch","keywords":["fetch","file","fs","readable","stream"],"repository":{"type":"git","url":"git+https://github.com/bergos/proto-fetch.git"},"author":{"name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org","url":"https://www.bergnet.org/people/bergi/card#me"},"bugs":{"url":"https://github.com/bergos/proto-fetch/issues"},"license":"MIT","readmeFilename":"README.md"}