1.0.2 • Published 5 years ago

tcp-mirror v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

tcp-mirror

receives what you send

usage

cli

npx tcp-mirror
npx tcp-mirror -h

node

npm i tcp-mirror
const createMirror = require('tcp-mirror')

// options are passed to constructor net.Server(options)
// mirror is the tcp server returned
const mirror = createMirror(options)

const port = 1234
mirror.listen(port)
mirror.on('connection', socket => {
  console.log(`Connection from ${socket.address().address}`)
})
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago