{"_id":"ky-universal","_rev":"4573560","name":"ky-universal","description":"Use Ky in both Node.js and browsers","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-04-10T15:35:15.000Z","created":"2019-02-22T16:48:57.033Z","1.0.0":"2026-03-28T06:20:51.561Z","0.12.0":"2023-07-28T18:55:46.289Z","0.11.0":"2022-10-12T10:40:06.958Z","0.10.1":"2022-03-10T08:57:53.837Z","0.10.0":"2022-01-25T17:02:05.780Z","0.9.1":"2021-01-13T13:13:12.362Z","0.9.0":"2021-01-08T09:03:40.090Z","0.8.2":"2020-09-15T11:35:22.776Z","0.8.1":"2020-06-25T14:55:45.342Z","0.8.0":"2020-06-25T10:16:48.657Z","0.7.0":"2020-05-27T08:21:19.051Z","0.6.0":"2020-04-21T07:47:35.450Z","0.5.0":"2020-02-14T07:40:52.254Z","0.4.0":"2020-02-02T19:32:45.419Z","0.3.0":"2019-08-12T21:10:36.518Z","0.2.2":"2019-07-06T14:45:52.273Z","0.2.1":"2019-05-24T07:37:24.999Z","0.2.0":"2019-04-19T04:17:54.923Z","0.1.0":"2019-02-22T16:48:57.033Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"versions":{"1.0.0":{"name":"ky-universal","version":"1.0.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","node":"./index.js","default":"./browser.js"},"sideEffects":false,"engines":{"node":">=16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"node-fetch":"^3.3.2"},"devDependencies":{"ava":"^5.3.1","ky":"^0.33.3","tsd":"^0.28.1","xo":"^0.55.0"},"peerDependencies":{"ky":">=0.33.0","web-streams-polyfill":">=3.2.1"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","gitHead":"3184bb8909e5dc349e273f4db507caaa6394a49a","types":"./index.d.ts","_id":"ky-universal@1.0.0","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_nodeVersion":"25.8.0","_npmVersion":"11.12.0","dist":{"shasum":"b77889eea65f14b696f134a4f45ef469a0b807b9","size":3010,"noattachment":false,"key":"/ky-universal/-/ky-universal-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-1.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ky-universal_1.0.0_1774678851404_0.06695754582312152"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-28T06:20:51.561Z","publish_time":1774678851561,"_source_registry_name":"default","deprecated":"The package is deprecated. Just use Ky directly.","_cnpm_publish_time":1774678851561},"0.12.0":{"name":"ky-universal","version":"0.12.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"node":"./index.js","default":"./browser.js"},"engines":{"node":">=16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"node-fetch":"^3.3.2"},"devDependencies":{"ava":"^5.3.1","ky":"^0.33.3","tsd":"^0.28.1","xo":"^0.55.0"},"peerDependencies":{"ky":">=0.33.0","web-streams-polyfill":">=3.2.1"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","types":"./index.d.ts","gitHead":"8c4fcd8c27c7e30acabd471bc9438f3f9928cbfe","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.12.0","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"shasum":"e01f5255628d2742a4535ccd1a85ee196af6b70c","size":2949,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.12.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.12.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.12.0_1690570546089_0.0748134896449788"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-28T18:55:46.289Z","publish_time":1690570546289,"_source_registry_name":"default","_cnpm_publish_time":1690570546289},"0.11.0":{"name":"ky-universal","version":"0.11.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"node":"./index.js","default":"./browser.js"},"engines":{"node":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^3.2.10"},"devDependencies":{"ava":"^4.3.3","ky":"^0.31.4","tsd":"^0.24.1","xo":"^0.52.4"},"peerDependencies":{"ky":">=0.31.4","web-streams-polyfill":">=3.2.1"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","types":"./index.d.ts","gitHead":"349bbe429dd9a9bed7d1cf18d1a2c4ff4b656fe0","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.11.0","_nodeVersion":"16.16.0","_npmVersion":"8.3.2","dist":{"shasum":"f5edf857865aaaea416a1968222148ad7d9e4017","size":3063,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.11.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.11.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.11.0_1665571206780_0.751019981799179"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-17T22:57:24.952Z","publish_time":1665571206958,"_cnpm_publish_time":1665571206958},"0.10.1":{"name":"ky-universal","version":"0.10.1","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"node":"./index.js","default":"./browser.js"},"engines":{"node":">=14"},"scripts":{"test":"xo && ava && tsd"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^3.2.2"},"devDependencies":{"ava":"^4.1.0","ky":"^0.30.0","tsd":"^0.19.1","xo":"^0.48.0"},"peerDependencies":{"ky":">=0.26.0","web-streams-polyfill":">=3.0.1"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","xo":{"rules":{"unicorn/prefer-export-from":"off"}},"types":"./index.d.ts","gitHead":"74c75592acd0af5cde6dac4e32f3e556a185a85c","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.10.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.2","dist":{"shasum":"778881e098f6e3c52a87b382d9acca54d22bb0d3","size":3113,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.10.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.10.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.10.1_1646902673696_0.0713929803882345"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-10T08:59:27.877Z","publish_time":1646902673837,"_cnpm_publish_time":1646902673837},"0.10.0":{"name":"ky-universal","version":"0.10.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"node":"./index.js","default":"./browser.js"},"engines":{"node":">=14"},"scripts":{"test":"xo && ava && tsd"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"3.2.0"},"devDependencies":{"ava":"^4.0.1","ky":"^0.28.7","tsd":"^0.19.1","xo":"^0.47.0"},"peerDependencies":{"ky":">=0.26.0","web-streams-polyfill":">=3.0.1"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","xo":{"rules":{"unicorn/prefer-export-from":"off"}},"types":"./index.d.ts","gitHead":"71092d3a7383faa7ed48f5816bb78e61390751b9","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.10.0","_nodeVersion":"14.17.5","_npmVersion":"8.3.2","dist":{"shasum":"3678d6279e8bccf4c17830935733d7d7485c39e6","size":3099,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.10.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.10.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.10.0_1643130125368_0.44201797184144187"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-25T17:02:11.663Z","publish_time":1643130125780,"_cnpm_publish_time":1643130125780},"0.9.1":{"name":"ky-universal","version":"0.9.1","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"node":"./index.js","default":"./browser.js"},"engines":{"node":">=14"},"scripts":{"//":"XO is disabled until ESLint supports top-level await","//test":"xo && ava && tsd","test":"ava && tsd"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"3.0.0-beta.9"},"devDependencies":{"ava":"^3.15.0","ky":"^0.26.0","tsd":"^0.14.0","xo":"^0.37.1"},"peerDependencies":{"ky":">=0.26.0","web-streams-polyfill":">=3.0.1"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","ava":{"globals":["globalThis"],"register":["."]},"tsd":{"compilerOptions":{"lib":["es2019","dom"]}},"gitHead":"ca24367ea3b5d5d4d3965396a9aeca7265011b9c","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.9.1","_nodeVersion":"15.5.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9ed897a1de794f5a177ab12ab424a804eb10577d","size":3135,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.9.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.9.1.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.9.1_1610543592194_0.8354465115702321"},"_hasShrinkwrap":false,"publish_time":1610543592362,"_cnpm_publish_time":1610543592362},"0.9.0":{"name":"ky-universal","version":"0.9.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"import":"./browser.js","node":"./index.js"},"engines":{"node":">=14"},"scripts":{"//":"XO is disabled until ESLint supports top-level await","//test":"xo && ava && tsd","test":"ava && tsd"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"3.0.0-beta.9"},"devDependencies":{"ava":"^3.15.0","ky":"^0.26.0","tsd":"^0.14.0","xo":"^0.37.1"},"peerDependencies":{"ky":">=0.26.0","web-streams-polyfill":">=3.0.1"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","ava":{"globals":["globalThis"],"register":["."]},"tsd":{"compilerOptions":{"lib":["es2019","dom"]}},"gitHead":"f3af6cedf56b0ed2add3f3cbd77645d121370c0b","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.9.0","_nodeVersion":"15.5.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"aabc1095f6fc54f498cefea5af1cacf132b03e1d","size":3139,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.9.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.9.0_1610096619884_0.5371593573117008"},"_hasShrinkwrap":false,"publish_time":1610096620090,"_cnpm_publish_time":1610096620090},"0.8.2":{"name":"ky-universal","version":"0.8.2","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10.17"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"3.0.0-beta.9"},"devDependencies":{"ava":"^2.4.0","ky":"^0.17.0","xo":"^0.25.3"},"peerDependencies":{"ky":">=0.17.0","web-streams-polyfill":">=2.0.0"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","ava":{"register":["."]},"gitHead":"e52f4c43e24463ee60d949b9309408c11c062587","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.8.2","_nodeVersion":"10.22.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"edc398d54cf495d7d6830aa1ab69559a3cc7f824","size":3061,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.8.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.8.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.8.2_1600169722666_0.880760388727938"},"_hasShrinkwrap":false,"publish_time":1600169722776,"_cnpm_publish_time":1600169722776},"0.8.1":{"name":"ky-universal","version":"0.8.1","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10.17"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"3.0.0-beta.7"},"devDependencies":{"ava":"^2.4.0","ky":"^0.17.0","xo":"^0.25.3"},"peerDependencies":{"ky":">=0.17.0","web-streams-polyfill":">=2.0.0"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","ava":{"register":["."]},"gitHead":"d1e9a5d8d325542f40ed2d09104aa6ccfc3cd065","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.8.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"68d1bb0e914e3c41a83ed2eef5928fb04c7867d5","size":3060,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.8.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.8.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.8.1_1593096945191_0.625837062530217"},"_hasShrinkwrap":false,"publish_time":1593096945342,"_cnpm_publish_time":1593096945342},"0.8.0":{"name":"ky-universal","version":"0.8.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10.17"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^3.0.0-beta.7"},"devDependencies":{"ava":"^2.4.0","ky":"^0.17.0","xo":"^0.25.3"},"peerDependencies":{"ky":">=0.17.0","web-streams-polyfill":">=2.0.0"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","ava":{"register":["."]},"gitHead":"b42efbb30049238fe01e8ab2c17b05d8ffff4ac3","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.8.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"14c728f73fd08dc8e458d0b8869b2dc53857db9f","size":3059,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.8.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.8.0_1593080208536_0.05253189590752938"},"_hasShrinkwrap":false,"publish_time":1593080208657,"_cnpm_publish_time":1593080208657},"0.7.0":{"name":"ky-universal","version":"0.7.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10.16"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^3.0.0-beta.6-exportfix"},"devDependencies":{"ava":"^2.4.0","ky":"^0.17.0","xo":"^0.25.3"},"peerDependencies":{"ky":">=0.17.0","web-streams-polyfill":">=2.0.0"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","ava":{"register":["."]},"gitHead":"3eca77b01a3b4139a95bfe3567406ca83d7f5485","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.7.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c51406190f724f42e624904d314066a526198db1","size":3067,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.7.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.7.0_1590567678956_0.14584093749242077"},"_hasShrinkwrap":false,"publish_time":1590567679051,"_cnpm_publish_time":1590567679051},"0.6.0":{"name":"ky-universal","version":"0.6.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.0"},"devDependencies":{"ava":"^2.4.0","ky":"^0.17.0","xo":"^0.25.3"},"peerDependencies":{"ky":">=0.17.0","web-streams-polyfill":">=2.0.0"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","ava":{"register":["."]},"gitHead":"ce5a08ebeafe2271c6945d4780f6c18aa9358062","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.6.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a91c265c80c38f750e65bbc6d72df16f5b58691f","size":2742,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.6.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.6.0_1587455255305_0.014737856996638321"},"_hasShrinkwrap":false,"publish_time":1587455255450,"_cnpm_publish_time":1587455255450},"0.5.0":{"name":"ky-universal","version":"0.5.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.0"},"devDependencies":{"ava":"^2.4.0","ky":"^0.17.0","xo":"^0.25.3"},"peerDependencies":{"ky":">=0.17.0","web-streams-polyfill":">=2.0.0"},"peerDependenciesMeta":{"web-streams-polyfill":{"optional":true}},"browser":"browser.js","ava":{"register":["."]},"gitHead":"5bf02df957654915ac2fc95d4f471c28759aa782","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.5.0","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"16d5fe881fb98e54732a4f0b7d531d44cbf701cb","size":2728,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.5.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.5.0_1581666052126_0.5814145883492736"},"_hasShrinkwrap":false,"publish_time":1581666052254,"_cnpm_publish_time":1581666052254},"0.4.0":{"name":"ky-universal","version":"0.4.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"funding":"https://github.com/sindresorhus/ky-universal?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.0"},"devDependencies":{"ava":"^2.4.0","ky":"^0.17.0","xo":"^0.25.3"},"peerDependencies":{"ky":">=0.17.0"},"browser":"browser.js","ava":{"register":["."]},"gitHead":"dbcc3798647dabc8981d44776b7afe8804edfc5e","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.4.0","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c764e0a5dfffe8552840cd796e2dc4d84e991c4c","size":2453,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.4.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.4.0_1580671965274_0.6803184035430276"},"_hasShrinkwrap":false,"publish_time":1580671965419,"_cnpm_publish_time":1580671965419},"0.3.0":{"name":"ky-universal","version":"0.3.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.0"},"devDependencies":{"ava":"^2.2.0","ky":"^0.12.0","xo":"^0.24.0"},"peerDependencies":{"ky":">=0.12.0"},"browser":"browser.js","ava":{"register":["."]},"gitHead":"1db45f8e03425e59feb3142b0b4bc9044ec4d346","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.3.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3fcbb0dd03da39b5f05100d9362a630d5e1d402e","size":2532,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.3.0_1565644236387_0.5157387394904931"},"_hasShrinkwrap":false,"publish_time":1565644236518,"_cnpm_publish_time":1565644236518},"0.2.2":{"name":"ky-universal","version":"0.2.2","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.3.0"},"devDependencies":{"ava":"^2.1.0","ky":"^0.11.1","xo":"^0.24.0"},"peerDependencies":{"ky":">=0.10.0"},"browser":"browser.js","ava":{"register":["."]},"gitHead":"ddb2a6417724e7b3cf994061aa688962616b5bd5","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.2.2","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7a36e1a75641a98f878157463513965f799f5bfe","size":2523,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.2.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.2.2_1562424352125_0.8548851358677356"},"_hasShrinkwrap":false,"publish_time":1562424352273,"_cnpm_publish_time":1562424352273},"0.2.1":{"name":"ky-universal","version":"0.2.1","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.3.0"},"devDependencies":{"ava":"^1.4.1","ky":"^0.10.0","xo":"^0.24.0"},"peerDependencies":{"ky":">=0.10.0"},"browser":"browser.js","ava":{"register":["."]},"gitHead":"9f8113114adafa307c3c19f724d827a8f7f5bd9c","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.2.1","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9b499cf7442b9aa6c7a10c30aaee85bba044e244","size":2472,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.2.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.2.1_1558683444842_0.7877736697718576"},"_hasShrinkwrap":false,"publish_time":1558683444999,"_cnpm_publish_time":1558683444999},"0.2.0":{"name":"ky-universal","version":"0.2.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.3.0"},"devDependencies":{"ava":"^1.4.1","ky":"^0.10.0","xo":"^0.24.0"},"peerDependencies":{"ky":">=0.10.0"},"browser":"browser.js","ava":{"register":["."]},"gitHead":"41288bdd30144d4666e02a1a97d346d473746e11","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"fbe4f029a06029c8e88be9c4aca256d6f5149b7b","size":2554,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.2.0_1555647474663_0.6080353850436453"},"_hasShrinkwrap":false,"publish_time":1555647474923,"_cnpm_publish_time":1555647474923},"0.1.0":{"name":"ky-universal","version":"0.1.0","description":"Use Ky in both Node.js and browsers","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ky-universal.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava"},"keywords":["ky","universal","isomorphic","browser","browsers","node","react","vue","ssr","fetch","request","requests","http","https","fetching","get","url","curl","wget","net","network","ajax","api","rest","xhr","browser","got","axios","node-fetch"],"dependencies":{"abort-controller":"^2.0.2","node-fetch":"^2.3.0"},"devDependencies":{"ava":"^1.2.1","ky":"^0.9.0","xo":"^0.24.0"},"peerDependencies":{"ky":">=0.9.0"},"browser":"browser.js","ava":{"register":["."]},"gitHead":"fc2f60d22409f0ab17bdf98f67aa73c7cf40840d","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"homepage":"https://github.com/sindresorhus/ky-universal#readme","_id":"ky-universal@0.1.0","_nodeVersion":"10.15.0","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"17dd27020427d7fcb6fa5cfcac792a970fcb1cb0","size":2510,"noattachment":false,"key":"/ky-universal/-/ky-universal-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ky-universal/download/ky-universal-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ky-universal_0.1.0_1550854136881_0.853949245132952"},"_hasShrinkwrap":false,"publish_time":1550854137033,"_cnpm_publish_time":1550854137033}},"readme":"# ky-universal\n\n> Use Ky in both Node.js and browsers\n\n**This package is deprecated. Just use Ky directly. It runs natively on Node.js and in browsers.**\n\n[Ky](https://github.com/sindresorhus/ky) is made for browsers, but this package makes it possible to use it in Node.js too, by polyfilling most of the required browser APIs using [`node-fetch`](https://github.com/bitinn/node-fetch).\n\nThis package can be useful for:\n- Isomorphic code\n- Web apps (React, Vue.js, etc.) that use server-side rendering (SSR)\n- Testing browser libraries using a Node.js test runner\n\n**Note:** Before opening an issue, make sure it's an issue with Ky and not its polyfills. Generally, if something works in the browser, but not in Node.js, it's an issue with `node-fetch`.\n\nKeep in mind that Ky targets [modern browsers](https://github.com/sindresorhus/ky#browser-support) when used in the browser. For older browsers, you will need to transpile and use a [`fetch` polyfill](https://github.com/github/fetch).\n\n## Install\n\n```sh\nnpm install ky ky-universal\n```\n\n*Note that you also need to install `ky`.*\n\n## Usage\n\n```js\nimport ky from 'ky-universal';\n\nconst parsed = await ky('https://httpbin.org/json').json();\n\n// …\n```\n\n## `ReadableStream` support\n\nFor [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) support, also install [`web-streams-polyfill`](https://github.com/MattiasBuelens/web-streams-polyfill):\n\n```sh\nnpm install web-streams-polyfill\n```\n\nYou can then use it normally:\n\n```js\nimport ky from 'ky-universal';\n\nconst {body} = await ky('https://httpbin.org/bytes/16');\nconst {value} = await body.getReader().read();\nconst result = new TextDecoder('utf-8').decode(value);\n\n// …\n```\n\n## API\n\nThe API is exactly the same as the [Ky API](https://github.com/sindresorhus/ky#api), including the [named exports](https://github.com/sindresorhus/ky#httperror).\n\n## FAQ\n\n#### How do I use this with a web app (React, Vue.js, etc.) that uses server-side rendering (SSR)?\n\nUse it like you would use Ky:\n\n```js\nimport ky from 'ky-universal';\n\nconst parsed = await ky('https://httpbin.org/json').json();\n\n// …\n```\n\nWebpack will ensure the polyfills are only included and used when the app is rendered on the server-side.\n\n#### How do I test a browser library that uses Ky in AVA?\n\nPut the following in package.json:\n\n```json\n{\n\t\"ava\": {\n\t\t\"require\": [\n\t\t\t\"ky-universal\"\n\t\t]\n\t}\n}\n```\n\nThe library that uses Ky will now *just work* in AVA tests.\n\n#### `clone()` hangs with a large response in Node - What should I do?\n\nStreams in Node.js have a smaller internal buffer size (16 kB, aka `highWaterMark`) than browsers (>1 MB, not consistent across browsers). When using Ky, the default `highWaterMark` is set to 10 MB, so you shouldn't encounter many issues related to that.\n\nHowever, you can specify a custom `highWaterMark` if needed:\n\n```js\nimport ky from 'ky-universal';\n\nconst response = await ky('https://example.com', {\n\t// 20 MB\n\thighWaterMark: 1000 * 1000 * 20\n});\n\nconst data = await response.clone().buffer();\n```\n\n## Related\n\n- [ky](https://github.com/sindresorhus/ky) - Tiny and elegant HTTP client based on the browser Fetch API\n- [got](https://github.com/sindresorhus/got) - Simplified HTTP requests in Node.js\n","_attachments":{},"homepage":"https://github.com/sindresorhus/ky-universal#readme","bugs":{"url":"https://github.com/sindresorhus/ky-universal/issues"},"license":"MIT"}