@hyc941129/axios-util
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@hyc941129/axios-util

Quick Setup

  1. Add @hyc941129/axios-util dependency to your project
# Using pnpm
pnpm add @hyc941129/axios-util

# Using yarn
yarn add @hyc941129/axios-util

# Using npm
npm install --save @hyc941129/axios-util
  1. Use @hyc941129/axios-util in your project
import WwHttp from '@hyc941129/axios-util'
import type { CustomConfig, MessageBox } from '@hyc941129/axios-util'

const customConfig: CustomConfig = {
  baseURL: '/api',
  timeout: 50000
}
cosnt http= new WwHttp(customConfig)

http.get('/aaa/bbb/ccc',{a:1,b:2})
http.post('/aaa/bbb/ccc',{a:1,b:2})
http.postFrom('/aaa/bbb/ccc',{a:1,b:2})
http.put('/aaa/bbb/ccc',{a:1,b:2})
http.delete('/aaa/bbb/ccc',{a:1,b:2})

Readme

Keywords

Package Sidebar

Install

npm i @hyc941129/axios-util

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

7.66 kB

Total Files

5

Last publish

Collaborators

  • hyc941129