
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
transport-stream
Advanced tools
Maintenance note This module isn't actively used in any of our projects anymore, so the amount of new features here will most likely be very low. However, we will fix any bugs and help co-maintain this with anyone interested.
Turn a protocol string into a transport duplex stream.
npm install transport-stream
Ships with support for transports that pipes to remote commands over ssh, piping to the processes spawned on local machine in other folder, http and https.
var transports = require('transport-stream')
var createStream = transports({
command: 'cat -' // spawn this command when using ssh or the local file system
})
// create a duplex stream that pipes to `spawn-me` on my-server.com
var stream = createStream('ssh://mafintosh@my-server.com:this-cwd')
// create a duplex stream over https
var stream = createStream('https://server.com/test')
// create a duplex stream that pipes to `spawn-me` spawned in /tmp
var stream = createStream('/tmp')
createStream = transports(options)Create a new transports instance. Options include
{
command: 'a-command-to-spawn',
protocols: {
// add any custom protocols here
dat: function (url, options) {
return aDatProtocolStream(url)
},
// or set http: false to disable a build in protocol
http: false
}
}
If you set the command option file and ssh protocols are enabled per default
in addition to http and https.
var stream = createStream(url)Create a new duplex transport stream based on the protocol used in url.
If no suitable protocol is found an exception is thrown.
MIT
FAQs
Turn a protocol string into a transport duplex stream.
We found that transport-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.