teeny-request
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "teeny-request", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Like request, but smaller.", | ||
@@ -30,2 +30,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@types/mocha": "^5.2.5", | ||
"@types/node-fetch": "^2.1.2", | ||
@@ -32,0 +33,0 @@ "@types/request": "^2.47.1", |
@@ -7,10 +7,8 @@ # teeny-request | ||
```ts | ||
import * from 'teeny-request'; | ||
import {teenyRequest as request} from 'teeny-request'; | ||
const request = teenyRequest; | ||
request({uri: 'http://www.google.com'}, function (error, response, body) { | ||
request({uri: 'http://ip.jsontest.com/'}, function (error, response, body) { | ||
console.log('error:', error); // Print the error if one occurred | ||
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received | ||
console.log('body:', body); // Print the JSON for the Google homepage. | ||
console.log('body:', body); // Print the JSON. | ||
}); | ||
@@ -42,1 +40,3 @@ ``` | ||
## Thanks | ||
Special thanks to [billyjacobson](https://github.com/billyjacobson) for suggesting the name. Please report all bugs to them. |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
import * as r from 'request'; | ||
@@ -2,0 +4,0 @@ import fetch from 'node-fetch'; |
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
16072
6
83
5
40