Comparing version 1.0.0 to 1.0.1
14
http.js
@@ -25,3 +25,17 @@ const util = require('util') | ||
/** | ||
* Utility for simple HTTP calls | ||
* @class | ||
*/ | ||
class HTTP { | ||
/** | ||
* make a simple http request | ||
* @param url {string} - url or path to call | ||
* @param options {object} | ||
* @example | ||
* ```js | ||
* const http = require('http-call') | ||
* await http.get('https://google.com') | ||
* ``` | ||
*/ | ||
static get (url, options = {}) { | ||
@@ -28,0 +42,0 @@ let http = new HTTP(Object.assign({}, options, { |
{ | ||
"name": "http-call", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "make http requests", | ||
@@ -18,3 +18,3 @@ "author": "Jeff Dickey @dickeyxxx", | ||
"scripts": { | ||
"doc": "jsdoc2md --template README.hbs --files rwlockfile.js > README.md", | ||
"doc": "jsdoc2md --template README.hbs --files http.js > README.md", | ||
"test": "standard", | ||
@@ -21,0 +21,0 @@ "version": "npm run doc && git add README.md" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101919
6
137
34