@nicsachin/requestpromise
a wrapper for request module which you can run asynchronously
Last updated 9 months ago by nicsachin .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nicsachin/requestpromise 
SYNC missed versions from official npm registry.

##just to make request asynchronous

const requestPromise = require('@nicsachin/requestpromise')

try {
        const data = await requestPromise('https://www.amazon.in');
        const response = data.response;
        const body = data.body;
        
}

catch (e) {
      console.log(e)
}

Current Tags

  • 1.0.2                                ...           latest (9 months ago)

3 Versions

  • 1.0.2                                ...           9 months ago
  • 1.0.1                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 8
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |