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

stream-url

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-url - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3

3

package.json
{
"name": "stream-url",
"version": "0.0.1",
"version": "0.0.3",
"homepage": "http://github.com/gritzko/stream-url",

@@ -25,3 +25,2 @@ "repository": {

"dependencies": {
"swarm-bat": "^0.4.0"
},

@@ -28,0 +27,0 @@ "devDependencies": {

Stream URLs
===========
unite two powerful universal concepts: streams and URLs
The mission of this package is to unite two powerful universal concepts:
streams and URLs.
`connect`
`listen`

@@ -35,15 +35,3 @@ "use strict";

// just as an example, register adaptors for loopback streams
register('loopback:', loopback_listen, loopback_connect);
function loopback_listen (stream_url, callback) {
return new bat.BatServer(stream_url.host, {}, callback);
}
function loopback_connect (stream_url, callback) {
var stream = new bat.BatStream();
stream.connect(stream_url.host, {}, callback);
return stream;
}
module.exports = {

@@ -50,0 +38,0 @@ listen: listen,

"use strict";
var su = require('..');
var bat = require('swarm-bat'); // register loopback:
var tape = require('tape');

@@ -4,0 +6,0 @@ if (typeof(window)==='object') {

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