@sailscasts/sails-hook-node-fetch

    0.0.3 • Public • Published

    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

    Install

    npm i @sailscasts/sails-hook-node-fetch

    DownloadsWeekly Downloads

    4

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    11.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • dominuskelvin