socket-pipe 1.0.1
Install from the command line:
Learn more about npm packages
$ npm install @socketsupply/socket-pipe@1.0.1
Install via package.json:
"@socketsupply/socket-pipe": "1.0.1"
About this version
A simple pipe that connects Node with Socket and shows you how to construct ipc messages for things like writing to stdout or setting the title of a window from Node.
import { Message } from '@socketsupply/socket-api/ipc.js'
import { Pipe } from '@socketsupply/socket-pipe'
const pipe = new Pipe({ json: true })
pipe.on('data', json => {
pipe.write(Message.from('stdout', data))
})
Details
- socket-pipe
- socketsupply
- almost 2 years ago
- ISC
- 3 dependencies
Assets
- socket-pipe-1.0.1.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0