sailscastshq / sails-hook-node-fetch

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

Home Page:https://www.npmjs.com/package/@sailscasts/sails-hook-node-fetch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sails-hook-node-fetch

made in nigeria

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

Installation

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

Usage

var wavesNGNPrice = await sails.helpers.fetch('https://waves-africa-api.herokuapp.com/ngn');
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

About

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

https://www.npmjs.com/package/@sailscasts/sails-hook-node-fetch

License:MIT License


Languages

Language:JavaScript 100.0%