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

http-curl

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-curl - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

dist/index.d.ts

43

package.json
{
"name": "http-curl",
"version": "0.1.2",
"version": "0.2.0",
"description": "",
"main": "index.js",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"http_client.h",
"http_client.cc",
"http_client_v8.h",
"http_client_v8.cc",
"dist",
"src",
"lib",
"binding.gyp",
"package.json",
"index.js",
"LICENSE",

@@ -18,4 +17,3 @@ "README.md"

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"install": "node-gyp rebuild"
"test": "jest"
},

@@ -29,3 +27,30 @@ "keywords": [],

"node-gyp": "^3.6.2"
},
"devDependencies": {
"@types/jest": "^23.3.12",
"@types/node": "^10.12.18",
"jest": "^23.6.0",
"ts-jest": "^23.10.5",
"typescript": "^3.2.2"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "/test/response\\.test.ts",
"testURL": "http://localhost/",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"collectCoverage": false,
"collectCoverageFrom": [
"src/**/*.ts"
],
"verbose": false
}
}

@@ -7,3 +7,11 @@ # Installation

TBA
```js
const { HttpClient } = require('http-curl');
(async function(proxy) {
const client = new HttpClient();
const response = await client.get('https://www.google.com/', { proxy });
console.log(response.statusCode); // 200
})('socks5://localhost:9050');
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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