https://github.com/timonson/fetchs
fetch something with types
https://github.com/timonson/fetchs
browser deno fetch types
Last synced: about 1 month ago
JSON representation
fetch something with types
- Host: GitHub
- URL: https://github.com/timonson/fetchs
- Owner: timonson
- License: mit
- Created: 2021-03-29T16:45:18.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T14:08:49.000Z (over 4 years ago)
- Last Synced: 2026-04-17T15:29:15.587Z (about 1 month ago)
- Topics: browser, deno, fetch, types
- Language: TypeScript
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fetchS
**fetch s**omething with types
### Simplified [fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
```typescript
import { fetchS } from "https://deno.land/x/fetchs/mod.ts";
await fetchS("https://github.com", { bodyMethod: "text" });
```
### Polyfill to fetch files with [deno](https://github.com/denoland/deno)
```typescript
import { fetchSPolyfill } from "https://deno.land/x/fetchs/mod.ts";
await fetchSPolyfill(import.meta.url, { bodyMethod: "blob" });
```