Socket
Socket
Sign inDemoInstall

teeny-request

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

teeny-request - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

test/index.ts

3

package.json
{
"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';

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