🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

native-pipe

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

native-pipe

Pipes that only depend on n-api

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

native-pipe

Pipes that only depend on n-api.

npm install native-pipe

Usage

const NativePipe = require('native-pipe')

const stream = new NativePipe('/tmp/server.sock') // or a \\pipe\... on windows

stream.write('hello world')

stream.on('data', function (data) {
  console.log(data)
})

API

stream = new NativePipe(pipeNameOrFd)

Make a new pipe. Returns a duplex stream. You can either pass the name of the pipe or an fd, like 0, 1, 2 for stdio.

See streamx for the full stream api.

TODO

Pipe servers.

License

MIT

FAQs

Package last updated on 23 Feb 2023

Did you know?

Socket

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.

Install

Related posts