@roshan-labs/http
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

🔀 @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

Package Sidebar

Install

npm i @roshan-labs/http

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

9.97 kB

Total Files

15

Last publish

Collaborators

  • gxmari007