@ferry-core/ferry
Version:
common fetch tool for ferry service
66 lines (42 loc) • 1.19 kB
Markdown
@ferry-core/ferry
> 🌴 ferry core tool 🌴
- Http request core tool based on oar
```bash
npm install --save @ferry-core/ferry
```
**First**:Import by commonjs or es module:
```js
import ferry, {
ferry,
ferryGet,
ferryPst,
ferryPut,
ferryDel,
} from '@ferry-core/ferry';
```
```js
const res = await ferryGet({ url: 'xxx', params: {} }).catch((err) => err);
```
```js
const res = await ferryPst({ url: 'xxx', data: {} }).catch((err) => err);
```
```js
const res = await ferryPut({ url: 'xxx', params: {} }).catch((err) => err);
```
```js
const res = await ferryDel({ url: 'xxx', params: {} }).catch((err) => err);
```
😉😘 If you feel it is helpful, please click <b>⭐️<a href="https://git..co/ferry-tools/ferry">Star</a></b> Thanks~
[](http://opensource.org/licenses/ISC)
Copyright (c) 2020-present,