https://github.com/willin/sdk0
Minimum Viable SDK
https://github.com/willin/sdk0
Last synced: 4 months ago
JSON representation
Minimum Viable SDK
- Host: GitHub
- URL: https://github.com/willin/sdk0
- Owner: willin
- License: apache-2.0
- Created: 2020-07-25T06:50:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:24:08.000Z (over 3 years ago)
- Last Synced: 2025-07-12T14:28:53.577Z (11 months ago)
- Language: JavaScript
- Size: 694 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sdk0
Minimum viable sdk for all your projects.
[](https://github.com/willin) [](https://npmjs.org/package/sdk0) [](https://npmjs.org/package/sdk0) [](https://npmjs.org/package/sdk0) [](https://codeclimate.com/github/willin/sdk0/maintainability) [](https://codeclimate.com/github/willin/sdk0/test_coverage) [](https://travis-ci.org/willin/sdk0)
## Install
```bash
npm install --save sdk0
# or
yarn add sdk0
```
## Usage
```js
const sdk0 = require('sdk0');
const client = sdk0({
baseURL: 'https://api.xxxx.com',
timeout: 1000,
headers: {
'X-Custom-Header': 'foobar'
}
});
// Use just like axios:
client.get('/xxx').then();
client
.post('/xxx', {
// form body
})
.then();
```
## LICENSE
Apache-2.0
通过支付宝捐赠:
