{"_id":"telnet","_rev":"30-b14b493c900daf4b01a972f83105e6ef","name":"telnet","description":"Telnet implementation for Node.js","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"telnet","description":"Telnet implementation for Node.js","keywords":["telnet"],"version":"0.0.1","author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-telnet.git"},"main":"./lib/telnet.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"binary":"*","buffers":"*","debug":"*"},"_id":"telnet@0.0.1","dist":{"shasum":"db164465c551a99ee785ea7fbba5a67cfc26c4af","tarball":"https://registry.npmjs.org/telnet/-/telnet-0.0.1.tgz","integrity":"sha512-IIAC/VvdLdtoCYD6aNsnX5qA9V07/1TLhAp60IvADYRYrr9p4wgTFrdW3+QyRdm3DXOrXC79b8jxrj4R5rzuVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMAh6+0hRCE0Lh+NZJeVcg0nIKkHCp4kw6wOnJQBSUUQIhAOzTzUAGSiMp5XSbM9KW4YWJ70wRETgEoLPP/pecmoNf"}]},"_npmVersion":"1.1.57","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"eirikb","email":"eirikb@eirikb.no"},{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{}}},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"},{"name":"tootallnate","email":"nathan@tootallnate.net"}],"time":{"modified":"2022-06-27T04:35:05.977Z","created":"2011-08-10T06:32:42.585Z","0.0.2":"2011-08-10T06:32:51.659Z","0.0.3":"2011-08-21T13:28:45.467Z","0.0.4":"2011-08-21T13:46:25.252Z","0.0.5":"2011-12-04T00:21:23.012Z","0.0.1":"2012-09-03T00:37:29.326Z"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-telnet.git"},"keywords":["telnet"],"readme":"node-telnet\n===========\n### Telnet implementation for Node.js\n[![Build Status](https://secure.travis-ci.org/TooTallNate/node-telnet.png)](http://travis-ci.org/TooTallNate/node-telnet)\n\n\nThis module offers an implementation of the [Telnet Protocol (RFC854)][rfc],\nmaking it possible to write a telnet server that can interact with the various\ntelnet features.\n\n### Implemented Options:\n\n| **Name**            | **Event**             |**Specification**\n|:--------------------|:----------------------|:-------------------------\n| Binary transmission | `'transmit binary'`   | [RFC856](http://tools.ietf.org/html/rfc856)\n| Echo                | `'echo'`              | [RFC857](http://tools.ietf.org/html/rfc857)\n| Suppress Go Ahead   | `'suppress go ahead'` | [RFC858](http://tools.ietf.org/html/rfc858)\n| Window Size         | `'window size'`       | [RFC1073](http://tools.ietf.org/html/rfc1073)\n\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install telnet\n```\n\n\nExamples\n--------\n\n``` js\nvar telnet = require('telnet')\n\ntelnet.createServer(function (client) {\n\n  // make unicode characters work properly\n  client.do.transmit_binary()\n\n  // make the client emit 'window size' events\n  client.do.window_size()\n\n  // listen for the window size events from the client\n  client.on('window size', function (e) {\n    if (e.command === 'sb') {\n      console.log('telnet window resized to %d x %d', e.width, e.height)\n    }\n  })\n\n  // listen for the actual data from the client\n  client.on('data', function (b) {\n    client.write(b)\n  })\n\n  client.write('connected to Telnet server!')\n\n}).listen(23)\n```\n\nAnd then you can connect to your server using `telnet(1)`\n\n``` bash\n$ telnet localhost\nconnected to Telnet server!\n```\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[rfc]: http://tools.ietf.org/html/rfc854\n","readmeFilename":"","users":{"campallison":true,"chrisx":true}}