项目作者: sailscastshq

项目描述 :
Exposes the light-weight node-fetch module as a built-in helper in your Sails app
高级语言: JavaScript
项目地址: git://github.com/sailscastshq/sails-hook-node-fetch.git
创建时间: 2020-10-19T09:13:26Z
项目社区:https://github.com/sailscastshq/sails-hook-node-fetch

开源协议:MIT License

下载


sails-hook-node-fetch

made in nigeria

Exposes the node-fetch module as a built-in helper in your Sails app.

Installation

  1. npm install @sailscasts/sails-hook-node-fetch --save

Usage

  1. var wavesNGNPrice = await sails.helpers.fetch('https://waves-africa-api.herokuapp.com/ngn');
  2. sails.log(wavesNGNPrice);

For more info on the usage of this hook see the node-fetch documentation as this hook exposes the same API as node-fetch