{"_id":"mp-command","_rev":"9-da222920e8b15cb7084eba8532e11e2c","name":"mp-command","description":"Command line utility for Message Ports","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.2":{"name":"mp-command","description":"Message Ports commandline utility","author":{"name":"Myles Byrne"},"version":"0.0.2","main":"./lib/mp.js","bin":{"mp":"./bin/mp"},"engines":{"node":"~0.4"},"dependencies":{"message-ports":"0.2.4"},"devDependencies":{"coffee-script":"1.1.2"},"repository":{"type":"git","url":"git://github.com/quackingduck/mp.git"},"licenses":[{"type":"MIT","url":"https://github.com/quackingduck/mp/raw/master/LICENSE"}],"_npmUser":{"name":"quackingduck","email":"myles@myles.id.au"},"_id":"mp-command@0.0.2","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"463a440526ff91c6fdc02135d53c2ca3223e95cc","tarball":"https://registry.npmjs.org/mp-command/-/mp-command-0.0.2.tgz","integrity":"sha512-aH8yX99Mpp2BgO6NiI64DsqzLxyU+1acNKhY6wZwNwOscGlYaqHmHBg02MYFjdsh5M+1r05bHRYxA7aFL69UjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+CDHBOvJ6HsiTWiKk1lqpAzGXBdcfAXp2XvZAUO3iVAiEAm1yzcXp+n31JdEuHlNgjpcsyPfrl8TnAmnjYaXGhV48="}]},"maintainers":[{"name":"quackingduck","email":"myles@myles.id.au"}]},"0.1.0":{"name":"mp-command","description":"Command line utility for Message Ports","author":{"name":"Myles Byrne"},"version":"0.1.0","main":"./lib/mp.js","bin":{"mp":"./bin/mp"},"engines":{"node":">=0.4"},"dependencies":{"message-ports":"0.3.x"},"devDependencies":{"coffee-script":"~1.1.2"},"repository":{"type":"git","url":"git://github.com/quackingduck/mp.git"},"licenses":[{"type":"MIT","url":"https://github.com/quackingduck/mp/raw/master/LICENSE"}],"_npmUser":{"name":"quackingduck","email":"myles@myles.id.au"},"_id":"mp-command@0.1.0","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"f7ea75c2f0ce7939e10577cd91e2649808516a23","tarball":"https://registry.npmjs.org/mp-command/-/mp-command-0.1.0.tgz","integrity":"sha512-MJUZHaF19gidU9Howom3aSvnWi5Nz6rXj68mLN3DxmmTStdXpVjnIhpMrZajpIRRfCtCzbF/Bs/HdAJChB8Prg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWzK8Kz0wnO8IBZ47DnIMq6iVZS39D7DKT5w89BCx0AwIhAM7JIR6/3STH3NcZrt9Dzmhdv0NbyThu8FdMUdgB2ZbH"}]},"maintainers":[{"name":"quackingduck","email":"myles@myles.id.au"}]},"0.2.0":{"name":"mp-command","description":"Command line utility for Message Ports","author":{"name":"Myles Byrne"},"version":"0.2.0","main":"./lib/mp.js","bin":{"mp":"./bin/mp"},"engines":{"node":">=0.4"},"dependencies":{"message-ports":"~0.4.1"},"devDependencies":{"coffee-script":"~1.2.0","mocha":"~0.14.1"},"repository":{"type":"git","url":"git://github.com/quackingduck/mp.git"},"licenses":[{"type":"MIT","url":"https://github.com/quackingduck/mp/raw/master/LICENSE"}],"_npmUser":{"name":"quackingduck","email":"myles@myles.id.au"},"_id":"mp-command@0.2.0","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.9","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"bcd314c03a3d9e17eea18c6af20dc503174451d1","tarball":"https://registry.npmjs.org/mp-command/-/mp-command-0.2.0.tgz","integrity":"sha512-ZPbJUUq/kV09S7kAK8rDb4bFZjKttG2tXCCs5Pnxkrie/9A+hvvhUoE87N37Y4pHfpXSv2XdBYipXhlj1Owj2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCugVH91nsVi4GGR3R3eN+k6H8NZGrK+OerTQCq68lX8gIgJ9xY5TTS9hiQiTBr4ZCQoLGZrrt5TkMFOi8QteSqLfQ="}]},"maintainers":[{"name":"quackingduck","email":"myles@myles.id.au"}]}},"readme":"# mp\n\nThe `mp` command line utility is like [curl] or [ncat] for [Message Ports]  (and [ZeroMQ] connections in general). It's a convenient way to experiment with different kinds of inter-process messaging patterns without having to write any code.\n\n[curl]:http://curl.haxx.se\n[ncat]:http://nmap.org/ncat\n[Message Ports]:https://github.com/quackingduck/message-ports\n[ZeroMQ]:http://www.zeromq.org\n\nHere's an example of request/reply messaging:\n\nFirst we open a reply socket on port 2000\n\n    $ mp reply 2000\n    - started reply socket on port 2000\n    - waiting for request\n\nLines beginning with a `-` are log messages from the system. Now let's open another terminal and start a request socket connected to the same port.\n\n    $ mp request 2000\n    - started request socket on port 2000\n    <\n\nWhen you see a `<` that means that `mp` is waiting for you to type a message that will transmitted to the other end of the connection. Type anything and press enter.\n\n    $ mp request 2000\n    - started reply socket on port 2000\n    < sup?\n    - request sent\n    - waiting for reply\n\nNow switch back to the reply terminal and you should see\n\n    $ mp reply 2000\n    - started reply socket on port 2000\n    - waiting for request\n    - request received:\n    > sup?\n    <\n\nType a response and switch back to the other terminal\n\n    $ mp request 2000\n    - started reply socket on port 2000\n    > sup?\n    - message sent, waiting for response\n    - reply received:\n    > nm, u?\n    <\n","maintainers":[{"name":"quackingduck","email":"myles@myles.id.au"}],"time":{"modified":"2022-06-20T10:51:26.782Z","created":"2011-11-22T05:45:01.685Z","0.0.2":"2011-11-22T05:45:02.369Z","0.1.0":"2012-01-01T23:49:04.133Z","0.2.0":"2012-03-19T03:49:46.014Z"},"author":{"name":"Myles Byrne"},"repository":{"type":"git","url":"git://github.com/quackingduck/mp.git"}}