Nonsense Placement Mandatory

    unirest-request-handler

    0.0.3 • Public • Published

    Unirest Request Handler

    A super tiny method for elegantly handling requests using the Unirest library.

    Installation

    npm install unirest-request-handler

    Usage

    Implementation is simple:

    const unirest = require('unirest');
    const requestHandler = require('unirest-request-handler');
     
    requestHandler
        .handle(unirest.get('https://google.com/'))
        .then(function(html) {
         // do stuff
        })
        .catch(function(err) {
         // handle error
        });

    License

    Copyright (c) 2017 Michael Scott. Licensed under the MIT license.

    Install

    npm i unirest-request-handler

    DownloadsWeekly Downloads

    7

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • camrymps