named-pipes

Windows named pipes for node

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
named-pipes
1120.0.19 years ago9 years agoMinified + gzip package size for named-pipes in KB

Readme

named-pipes
Easy to use IPC emitter using Windows Named Pipes.

Installation

npm install named-pipes --save

Usage

Server

NamedPipes = require 'named-pipes'

server = NamedPipes.listen('your-pipe-name')

server.on 'connect', (client) ->
  console.log 'New Client'

  client.send 'welcome', 'something' # THis gets passed to emit on the client side

Client

NamedPipes = require 'named-pipes'

pipe = NamedPipes.connect('your-pipe-name')

pipe.on 'welcome', (str) ->
  console.log str # Outputs 'something'