https://github.com/deeptimes/ezfetch
Easy to use fetch through simple wrapping ofetch
https://github.com/deeptimes/ezfetch
fetch module nuxt usefetch wrapper
Last synced: 3 months ago
JSON representation
Easy to use fetch through simple wrapping ofetch
- Host: GitHub
- URL: https://github.com/deeptimes/ezfetch
- Owner: deeptimes
- License: mit
- Created: 2024-07-15T09:11:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-19T05:36:37.000Z (over 1 year ago)
- Last Synced: 2025-04-08T13:18:51.214Z (about 1 year ago)
- Topics: fetch, module, nuxt, usefetch, wrapper
- Language: TypeScript
- Homepage:
- Size: 140 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-EN.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# EzFetch
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]
This module is for personal learning and communication. There are still some deficiencies in the types. I hope some experts can give me some advice.
- [🌍 中文说明](https://github.com/deeptimes/ezfetch/blob/main/README.md)
- [🏀 Online playground](https://stackblitz.com/edit/nuxt-starter-vpwwc4?file=README.md)
## Features
- ⛰ Foo
- 🚠 Bar
- 🌲 Baz
## Quick Setup
Install the module to your Nuxt application with one command:
```bash
npx nuxi module add @deeptimes/ezfetch
# for pnpm
pnpx nuxi module add @deeptimes/ezfetch
```
## Manual Installation
```bash
npm i @deeptimes/ezfetch
# or
pnpm add @deeptimes/ezfetch
```
Modify `nuxt.config.ts` and add `@deeptimes/ezfetch` to the `modules` array.
```js
export default defineNuxtConfig({
modules: ["@deeptimes/ezfetch"]
})
```
That's it! You can now use My Module in your Nuxt app ✨
## Contribution
Local development
```bash
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
```
[npm-version-src]: https://img.shields.io/npm/v/@deeptimes/ezfetch/latest.svg?style=flat&colorA=020420&colorB=00DC82
[npm-version-href]: https://npmjs.com/package/@deeptimes/ezfetch
[npm-downloads-src]: https://img.shields.io/npm/dm/@deeptimes/ezfetch.svg?style=flat&colorA=020420&colorB=00DC82
[npm-downloads-href]: https://npmjs.com/package/@deeptimes/ezfetch
[license-src]: https://img.shields.io/npm/l/@deeptimes/ezfetch.svg?style=flat&colorA=020420&colorB=00DC82
[license-href]: https://npmjs.com/package/@deeptimes/ezfetch
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
[nuxt-href]: https://nuxt.com