Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

req-then

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

req-then - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

jsdoc2md/README.hbs

6

lib/req-then.js

@@ -15,4 +15,4 @@ 'use strict'

* .then(response => {
* console.log("Response received")
* console.log(response.data)
* console.log("Response received", response.data)
* console.log("The nodejs response instance", response.res)
* })

@@ -31,3 +31,3 @@ * .catch(console.error)

@returns {external:Promise}
@resolve {{ res: node-res-object, data: response-data }}
@resolve {object} - `res` will be the node response object, `data` will be the data
@reject {Error}

@@ -34,0 +34,0 @@ @alias module:req-then

{
"name": "req-then",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "0.2.0",
"version": "0.2.1",
"description": "Simple http(s) request function, returning a promise. ",

@@ -11,2 +11,3 @@ "repository": "https://github.com/75lb/req-then",

},
"license": "MIT",
"keywords": [

@@ -27,3 +28,3 @@ "http",

"test": "tape test/*.js",
"docs": "jsdoc2md lib/*.js -l js > README.md; echo",
"docs": "jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo",
"start": "node test/interactive/server.js"

@@ -30,0 +31,0 @@ },

@@ -0,1 +1,6 @@

[![view on npm](http://img.shields.io/npm/v/req-then.svg)](https://www.npmjs.org/package/req-then)
[![npm module downloads](http://img.shields.io/npm/dt/req-then.svg)](https://www.npmjs.org/package/req-then)
[![Dependency Status](https://david-dm.org/75lb/req-then.svg)](https://david-dm.org/75lb/req-then)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)
<a name="module_req-then"></a>

@@ -11,4 +16,4 @@ ## req-then

.then(response => {
console.log("Response received")
console.log(response.data)
console.log("Response received", response.data)
console.log("The nodejs response instance", response.res)
})

@@ -22,3 +27,3 @@ .catch(console.error)

**Kind**: Exported function
**Resolve**: <code>{ res: node-res-object, data: response-data </code>}
**Resolve**: <code>object</code> - `res` will be the node response object, `data` will be the data
**Reject**: <code>Error</code>

@@ -34,1 +39,5 @@

* * *
&copy; 2015 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc