0.0.2 • Published 1 year ago
simple-fetcher v0.0.2
simple-fetcher
http fetch library
new HttpFetcher().get({target: 'https://dummyjson.com/products/1'}).then(async it => {
console.log(await it.json());
})
new HttpJsonFetcher().get<{id: number, title: string}>({target: 'https://dummyjson.com/products/1'}).then(async it => {
console.log(it.title);
})