wretch:使用直观的语法围绕获取构建的小型包装器

一个小巧的(约3Kb g压缩)包装器,以直观的语法围绕获取。 f [ETCH] [WR] apper Wretch 1.7现已上线:party_popper: !请在每次更新后签出变更,以了解新功能和重大更改。如果您想尝试热门产品,请查看分支。可通过软件包获得中间件集合! :package:目录动机因为必须编写第二个回调来处理响应主体,所以感觉很尴尬。 // Fetch needs a second callback to process the response body fetch ( "examples/example.json" ) . then ( response => response . json ( ) ) . then ( json => { //Do stuff with the parsed json } ) // Wretch does it for you // Use .res for the raw response, .text for raw text, .json for json, .blob for a
zip
wretch-master.zip 预估大小:81个文件
folder
wretch-master 文件夹
file
.travis.yml 2KB
folder
.nojekyll 文件夹
file
wretch.svg 4KB
file
rollup.config.js 677B
folder
docs 文件夹
file
index.html 8KB
file
index.css 5KB
file
package.json 3KB
file
tslint.json 2KB
folder
.github 文件夹
file
FUNDING.yml 58B
folder
test 文件夹
folder
node 文件夹
file
wretch.spec.ts 23KB
folder
assets 文件夹
file
duck.jpg 58KB
file
mock.js 5KB
folder
browser 文件夹
file
SpecRunner.html 543B
file
MIT.LICENSE 1KB
folder
src 文件夹
file
wretch.min.js 8KB
file
wretch.min.js.map 32KB
folder
spec 文件夹
file
index.js 19KB
folder
lib 文件夹
folder
jasmine-3.1.0 文件夹
file
jasmine-html.js 20KB
file
jasmine.css 20KB
file
jasmine_favicon.png 1KB
file
boot.js 5KB
file
jasmine.js 177KB
folder
jasmine-2.99.0 文件夹
file
jasmine-html.js 18KB
file
jasmine.css 20KB
file
console.js 5KB
file
jasmine_favicon.png 1KB
file
boot.js 5KB
file
jasmine.js 159KB
file
tsconfig.tests.json 286B
folder
assets 文件夹
file
browserstack-logo.png 36KB
file
LICENSE 1KB
file
package-lock.json 426KB
folder
dist 文件夹
file
config.js 1KB
file
index.js 281B
file
index.umd.js 216B
file
config.js.map 2KB
file
index.js.map 854B
file
mix.d.ts 87B
file
perfs.js.map 4KB
file
config.d.ts 409B
file
index.umd.js.map 487B
file
perfs.d.ts 146B
file
wretcher.d.ts 7KB
file
perfs.js 2KB
file
middleware.js 452B
file
wretcher.js 15KB
file
wretcher.js.map 22KB
file
middleware.js.map 1KB
file
resolver.js 6KB
file
index.d.ts 388B
file
mix.js.map 2KB
file
middleware.d.ts 486B
file
index.umd.d.ts 156B
file
resolver.js.map 13KB
file
resolver.d.ts 2KB
file
mix.js 1KB
folder
bundle 文件夹
file
wretch.js 9KB
file
wretch.esm.js.map 36KB
file
wretch.esm.js 9KB
file
wretch.js.map 36KB
file
CONTRIBUTING.md 1KB
folder
src 文件夹
file
perfs.ts 2KB
file
middleware.ts 780B
file
wretcher.ts 13KB
file
index.umd.ts 179B
file
mix.ts 709B
file
config.ts 726B
file
index.ts 476B
file
resolver.ts 8KB
file
tsconfig.json 380B
file
.gitignore 937B
file
browserstack.json 241B
file
CHANGELOG.md 26KB
file
README.md 34KB
folder
scripts 文件夹
folder
conventional-changelog-wretch 文件夹
file
index.js 2KB
file
package.json 237B
folder
templates 文件夹
file
template.hbs 140B
file
header.hbs 308B
file
commit.hbs 798B
file
mockServer.js 58B
file
.gitattributes 53B
...
zip 文件大小:389.25KB