New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

braid-http

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braid-http - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

index.js

@@ -10,4 +10,4 @@ // This is the root file for require('braid-http').

fetch: client.fetch,
http: client.http,
http_client: client.http,
http_server: server
}
{
"name": "braid-http",
"version": "0.0.1",
"version": "0.0.2",
"description": "An implementation of Braid-HTTP for Node.js and Browsers",

@@ -5,0 +5,0 @@ "scripts": {

@@ -22,8 +22,10 @@ # Braid-HTTP

Then in your node.js code:
```javascript
// Import with require()
require('braid-http').fetch // A polyfill for require('node-fetch')
require('braid-http').http // A polyfill for require('http') clients
require('braid-http').http_client // A polyfill for require('http') clients
require('braid-http').http_server // A polyfill for require('http') servers
// Or as es6 module
import {fetch, http_client, http_server} from 'braid-http'
```

@@ -205,6 +207,6 @@

var https = require('braid-http').http(require('https'))
var https = require('braid-http').http_client(require('https'))
// or:
// import braid_http from 'braid-http'
// https = braid_http.http(require('https'))
// https = braid_http.http_client(require('https'))

@@ -211,0 +213,0 @@ https.get(

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