0.0.4 • Published 3 months ago

@roshan-labs/http v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

🔀 @roshan-labs/http

npm version npm downloads License Nuxt

对 Nuxt $fetch 的封装,统一请求配置

使用

  1. 添加 @roshan-labs/http 到项目中
# 使用 pnpm
pnpm add -D @roshan-labs/http

# 使用 yarn
yarn add --dev @roshan-labs/http

# 使用 npm
npm install --save-dev @roshan-labs/http
  1. @roshan-labs/http 添加进 nuxt.config.tsmodules 选项中
export default defineNuxtConfig({
  modules: [
    '@roshan-labs/http'
  ],
})

现在你可以在项目中使用此模块了 ✨

选项

开发

# 安装依赖
npm install

# 构建垫片
npm run dev:prepare

# 运行演练场模式
npm run dev

# 构建演练场模式
npm run dev:build

# 运行代码检查
npm run lint

# 运行测试
npm run test
npm run test:watch

# 发布
npm run release

License

MIT