{"_id":"@andste82/telnet-tty","_rev":"3-6724eccde94ea63dcd4fd88ef72312e6","name":"@andste82/telnet-tty","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@andste82/telnet-tty","version":"0.1.0","keywords":["Telnet","TTY"],"author":{"name":"Andste82"},"license":"MIT","_id":"@andste82/telnet-tty@0.1.0","maintainers":[{"name":"andste82","email":"andreas.steinbart@web.de"}],"homepage":"https://github.com/Andste82/telnet-tty#readme","bugs":{"url":"https://github.com/Andste82/telnet-tty/issues"},"dist":{"shasum":"2c753b5960f9fda69c9361a40f5ed052f9c8b111","tarball":"https://registry.npmjs.org/@andste82/telnet-tty/-/telnet-tty-0.1.0.tgz","fileCount":6,"integrity":"sha512-bx3PiTzQiGyS8m8JMgmu9cusqrrdoo3mGW6oC74oUALCoikxWm0DWYpSYmbCT6ONIbUQXxD5NhEGNRDUFNT5Zg==","signatures":[{"sig":"MEYCIQDvd2fzSAMcEyDHNSae6ijaeTimg/7L2yN6e3hfPjLhpQIhAILRQkzkCPDgMWu2YxuUA7p1uXo2XljXfJtbPM9EWXD9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15783},"main":"index.mjs","tags":["Telnet","TTY"],"gitHead":"759573bd9bc8d3262df299b3651cc984d83ebec8","scripts":{"example":"node examples/interface.mjs"},"_npmUser":{"name":"andste82","email":"andreas.steinbart@web.de"},"repository":{"url":"git+https://github.com/Andste82/telnet-tty.git","type":"git"},"_npmVersion":"9.4.0","description":"TTY interface for Telnet sessions","directories":{},"_nodeVersion":"19.6.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","hexdump-nodejs":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/telnet-tty_0.1.0_1712757183382_0.4874641908697721","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@andste82/telnet-tty","version":"0.1.1","keywords":["Telnet","TTY"],"author":{"name":"Andste82"},"license":"MIT","_id":"@andste82/telnet-tty@0.1.1","maintainers":[{"name":"andste82","email":"andreas.steinbart@web.de"}],"homepage":"https://github.com/Andste82/telnet-tty#readme","bugs":{"url":"https://github.com/Andste82/telnet-tty/issues"},"dist":{"shasum":"cdc3c8739108b01f72383622f50dca491d7d1fe7","tarball":"https://registry.npmjs.org/@andste82/telnet-tty/-/telnet-tty-0.1.1.tgz","fileCount":6,"integrity":"sha512-hQ6rzXQ16eQzfPVvnYnKZ9zqpW3OLxDxEhAZPXQg13HYkhRs/AFFH32c9pieAykobiMabSRqTm5dwd0gdAwffA==","signatures":[{"sig":"MEQCIAJ0xMfvo27Ia7Wl2owsqHRBLbxp5AbXrIHlUvmlpHs+AiA6O9QGlpXwsQvRx/yBECn1FLD/DtVk0F6wLHGIHSMk1g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15927},"main":"index.mjs","tags":["Telnet","TTY"],"gitHead":"791ef5cdb91e90dd3962f619dcf10b99ddb8b15d","scripts":{"example":"node examples/interface.mjs"},"_npmUser":{"name":"andste82","email":"andreas.steinbart@web.de"},"repository":{"url":"git+https://github.com/Andste82/telnet-tty.git","type":"git"},"_npmVersion":"10.7.0","description":"TTY interface for Telnet sessions","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","hexdump-nodejs":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/telnet-tty_0.1.1_1715785325228_0.6680498562077919","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@andste82/telnet-tty","version":"0.1.2","keywords":["Telnet","TTY"],"author":{"name":"Andste82"},"license":"MIT","_id":"@andste82/telnet-tty@0.1.2","maintainers":[{"name":"andste82","email":"andreas.steinbart@web.de"}],"homepage":"https://github.com/Andste82/telnet-tty#readme","bugs":{"url":"https://github.com/Andste82/telnet-tty/issues"},"dist":{"shasum":"069d884916f2b20546d324722598214034457540","tarball":"https://registry.npmjs.org/@andste82/telnet-tty/-/telnet-tty-0.1.2.tgz","fileCount":6,"integrity":"sha512-MM5lylKg8lh8wpfsweObsa52LF3jSmYSgPslHbwbfAp8nZPrgCZNqI/VLlhA+elsItHCYpwtFIZmFYGk4zz1Bw==","signatures":[{"sig":"MEUCIQDcVpKnsUrEecUelX1SxlAexzHQwISs468wMIwLwt/kmQIgB8b0nOkccTOd1GbhwKJdqBIF3KI7HolY2VQzJSYF7Ks=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16077},"main":"index.mjs","tags":["Telnet","TTY"],"gitHead":"ca1443376ef750361eb31efbcee8374b437e097b","scripts":{"example":"node examples/interface.mjs"},"_npmUser":{"name":"andste82","email":"andreas.steinbart@web.de"},"repository":{"url":"git+https://github.com/Andste82/telnet-tty.git","type":"git"},"_npmVersion":"10.7.0","description":"TTY interface for Telnet sessions","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","hexdump-nodejs":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/telnet-tty_0.1.2_1715839525567_0.7720925852915514","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@andste82/telnet-tty","version":"0.1.3","description":"TTY interface for Telnet sessions","repository":{"type":"git","url":"git+https://github.com/Andste82/telnet-tty.git"},"main":"index.mjs","scripts":{"example":"node examples/interface.mjs"},"keywords":["Telnet","TTY"],"tags":["Telnet","TTY"],"author":{"name":"Andste82"},"license":"MIT","devDependencies":{"eslint":"^9.18.0","hexdump-nodejs":"^0.1.0"},"_id":"@andste82/telnet-tty@0.1.3","gitHead":"9b2937d7b9939b889399cc3d7241226b4f4c781c","bugs":{"url":"https://github.com/Andste82/telnet-tty/issues"},"homepage":"https://github.com/Andste82/telnet-tty#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-vNebley3MDl7m4nPnvXuYWInrNDSlpX0VIu789/CFf0qWRQxZ+qG1YF3yN8bpdwgy1LcA5c6uvxa9dndIigHRg==","shasum":"e08a7329bffb5ee24a628319e88cbbee5bd51a19","tarball":"https://registry.npmjs.org/@andste82/telnet-tty/-/telnet-tty-0.1.3.tgz","fileCount":7,"unpackedSize":16918,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC50nrAql71yeamLGvv+qVnxHaPYI/MsYyFGtjoCEg1xwIgXoc3WjeirgIuT2Jpsl/bEKCHe3qdfUti+zBgntfTCzQ="}]},"_npmUser":{"name":"andste82","email":"andreas.steinbart@web.de"},"directories":{},"maintainers":[{"name":"andste82","email":"andreas.steinbart@web.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/telnet-tty_0.1.3_1736921610649_0.994927184405177"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-10T13:53:03.240Z","modified":"2025-01-15T06:13:31.322Z","0.1.0":"2024-04-10T13:53:03.612Z","0.1.1":"2024-05-15T15:02:05.493Z","0.1.2":"2024-05-16T06:05:25.741Z","0.1.3":"2025-01-15T06:13:30.819Z"},"bugs":{"url":"https://github.com/Andste82/telnet-tty/issues"},"author":{"name":"Andste82"},"license":"MIT","homepage":"https://github.com/Andste82/telnet-tty#readme","keywords":["Telnet","TTY"],"repository":{"type":"git","url":"git+https://github.com/Andste82/telnet-tty.git"},"description":"TTY interface for Telnet sessions","maintainers":[{"name":"andste82","email":"andreas.steinbart@web.de"}],"readme":"# Telnet-TTY\n\nA TTY-compatible Telnet interface for node.js\n\nTelnet-TTY consists of the following functions:\n* a simple telnet server\n* a TTY interface for each telenet session\n\nEach connection to the telnet server is mapped by an instance of the `TelnetSession` class. This class implements the node.js `Duplex` interface of the `node:stream` module. In addition, some necessary TTY functions have been added to comply with the `node:tty` interface.\n\n**Note:** this module is still at a very early stage!\n\n## Examples\n\n### Readline interface\n\nThis example demonstrates how a telnet-tty session can be connected to the `node:readline` interface of node.js.\n\n```js\nimport { createInterface } from 'node:readline';\nimport { TelnetServer } from '@andste82/telnet-tty';\n\nconst server = new TelnetServer();\n\nserver.on('connection', (session) =>\n{\n  const rl = createInterface(\n  {\n    input: session,\n    output: session,\n    prompt: 'PROMPT> ',\n  });\n\n  rl.prompt();\n\n  rl.on('line', (line) =>\n  {\n    switch (line.trim())\n    {\n      case 'hello':\n        session.write('world!\\n');\n        break;\n\n      default:\n        session.write(`Say what? I might have heard '${line.trim()}'\\n`);\n        break;\n    }\n    rl.prompt();\n  });\n\n  rl.on('error', console.log);\n\n  session.on('resize', () =>\n  {\n    console.log(session.getWindowSize());\n  });\n});\n\nserver.listen(23);\n```\n","readmeFilename":"README.md"}