
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
stream-url
Advanced tools
The package aims to unite two powerful universal concepts: streams and
URLs. stream-url encapsulates details of a particular medium and allows
the app to open data streams to URLs.
stream-url is a syntactic sugar, in a sense, but it definitely helps to
clear a subsystem's code out of technical details and make it easily
pluggable.
var su = require('stream-url');
// TCP server
var tcp_server = su.listen('tcp://localhost:1234', (err, serv) => {
serv.on('connection', stream => {
...
// stdin/stdout "client"
su.connect('std:', (err, stream) => {
...
listen(url [,options] [,callback]) start a server (stream factory)
listening at the url, using options. Invoke callback(err, server) when ready or failed.
The server will emit a connection event for every new
incoming connection/stream.connect(url [,options] [,callback]) connect to a server at (create
a stream to) url. Invoke callback(err, stream) once ready to
write or failed to connect.
The stream will emit all the usual events:
data, end, error.This package defines just one fictive URL protocol named 0 which
masquerades local invocations for a stream. The 0 protocol is mostly
useful for connecting componenets locally. It is not that useful for
unit testing as it skips serialization/ deserialization for the sake
of efficiency. See test/ for usage examples.
All "real" protocols are defined in separate packages, as those introduce non-trivial dependencies.
FAQs
Stream URLs ===========
The npm package stream-url receives a total of 6 weekly downloads. As such, stream-url popularity was classified as not popular.
We found that stream-url demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.