🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@ferry-core/ferry

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ferry-core/ferry

common fetch tool for ferry service

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
14
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

@ferry-core/ferry

🌴 ferry core tool 🌴

🌱 Features

  • Http request core tool based on oar

🚀 Quick start

Installation

npm install --save @ferry-core/ferry # 或 yarn add @ferry-core/ferry

How to use

First:Import by commonjs or es module:

import ferry, {
  ferry,
  ferryGet,
  ferryPst,
  ferryPut,
  ferryDel,
} from '@ferry-core/ferry';

ferry Ferry class singleton binding oarClient instance object

ferry Ferry class singleton instance

ferryGet Get method

const res = await ferryGet({ url: 'xxx', params: {} }).catch((err) => err);

ferryPst Post method

const res = await ferryPst({ url: 'xxx', data: {} }).catch((err) => err);

ferryPut Put method

const res = await ferryPut({ url: 'xxx', params: {} }).catch((err) => err);

ferryDel Delete method

const res = await ferryDel({ url: 'xxx', params: {} }).catch((err) => err);

😉😘 If you feel it is helpful, please click ⭐️Star Thanks~

License

ISC

Copyright (c) 2020-present,

Keywords

ferry

FAQs

Package last updated on 03 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts