{"_id":"trivial-port","_rev":"33-050ede500d9810f725f7fb859a30cb0a","name":"trivial-port","description":"Node.js library to open serial ports for reading and writing","dist-tags":{"latest":"0.3.2"},"versions":{"0.1.0":{"name":"trivial-port","version":"0.1.0","description":"Node.js library to open serial ports for reading and writing","main":"serialport.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/bminer/trivial-port.git"},"keywords":["serial","port","node"],"author":{"name":"Blake Miner","email":"miner.blake@gmail.com"},"engines":{"node":">=0.8"},"license":"MIT","bugs":{"url":"https://github.com/bminer/trivial-port/issues"},"_id":"trivial-port@0.1.0","dist":{"shasum":"0a26792002b8c1dbc7517c189e79f8f40520868a","tarball":"https://registry.npmjs.org/trivial-port/-/trivial-port-0.1.0.tgz","integrity":"sha512-Iz5i4dlPKcHidshXsNGGydD42szNB+6/yETJsln4xyWSY9Aj9FdUOAvxTq557tO/5o2B6ICC2LZonchQomD9Fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl+6gxRUnPG2sRyphdQyPFoBgWjkTBJE+y3E67h5oNsQIgL7FVdK38ebFsGQVrlVHH+trpDcSVDcN0riF9gbz6Sp0="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"bminer","email":"miner.blake@gmail.com"},"maintainers":[{"name":"bminer","email":"miner.blake@gmail.com"}],"deprecated":"Probably doesn't work in Node 1+.  Use serialport lib instead."},"0.2.0":{"name":"trivial-port","version":"0.2.0","description":"Node.js library to open serial ports for reading and writing","main":"serialport.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/bminer/trivial-port.git"},"keywords":["serial","port","node"],"author":{"name":"Blake Miner","email":"miner.blake@gmail.com"},"engines":{"node":">=0.8"},"license":"MIT","bugs":{"url":"https://github.com/bminer/trivial-port/issues"},"_id":"trivial-port@0.2.0","dist":{"shasum":"a79f17aa558a491ecc91273509bae62e3f865c52","tarball":"https://registry.npmjs.org/trivial-port/-/trivial-port-0.2.0.tgz","integrity":"sha512-6S4Z3HDPNcN1b+o0KZgrsHbGzoD4P91xOmCFQbKi97vWBAJTJWrsBK0Z8tdVhisyF+mIdxG2N9mOH4N5uiR0dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEjPnAnP8zwVwhHhvsj0/+h75UlVq9SEHHL6MayKQn4gIgalM9ZDRPNmfQ38TuTTxYH+TD3Rl4mcCdl8Bwm+Xd0sM="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"bminer","email":"miner.blake@gmail.com"},"maintainers":[{"name":"bminer","email":"miner.blake@gmail.com"}],"deprecated":"Probably doesn't work in Node 1+.  Use serialport lib instead."},"0.2.1":{"name":"trivial-port","version":"0.2.1","description":"Node.js library to open serial ports for reading and writing","main":"serialport.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/bminer/trivial-port.git"},"keywords":["serial","port","node"],"author":{"name":"Blake Miner","email":"miner.blake@gmail.com"},"engines":{"node":">=0.8"},"license":"MIT","bugs":{"url":"https://github.com/bminer/trivial-port/issues"},"_id":"trivial-port@0.2.1","dist":{"shasum":"422f9a9e8f5b562512c97f4d54737d644791b5c4","tarball":"https://registry.npmjs.org/trivial-port/-/trivial-port-0.2.1.tgz","integrity":"sha512-5fRaropKcKSkIubXaJVi09z3ktzClmJmtOmT+NTvm3+InVCpa22GRsgBEFvcXicCCdDu1Vs5W6Xw0b5DuueW0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdqpLTQg6B/SBqa2V1S+sjF0bc2EiYiNG8SGsSlF47mQIgCIJn0ZZoxCwWrrvpD65ajxOQwWLu3niQE3q2avhgEv0="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"bminer","email":"miner.blake@gmail.com"},"maintainers":[{"name":"bminer","email":"miner.blake@gmail.com"}],"deprecated":"Probably doesn't work in Node 1+.  Use serialport lib instead."},"0.2.2":{"name":"trivial-port","version":"0.2.2","description":"Node.js library to open serial ports for reading and writing","main":"serialport.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/bminer/trivial-port.git"},"keywords":["serial","port","node"],"author":{"name":"Blake Miner","email":"miner.blake@gmail.com"},"engines":{"node":">=0.8"},"license":"MIT","bugs":{"url":"https://github.com/bminer/trivial-port/issues"},"_id":"trivial-port@0.2.2","dist":{"shasum":"ae84ae86e46642e1f10bb0a93ea730089778e1e4","tarball":"https://registry.npmjs.org/trivial-port/-/trivial-port-0.2.2.tgz","integrity":"sha512-XMrLUXAtJp4HVrFNYWDlI+xrCHCz5DJciUZoxMff0Qp6QXOmcCYq/v9j913CkdXunTF7OgbKf0PxLnYcwh2Q9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0qIyIZgKssX67v3lJthFSt7H6Y3SY9YV9FEncEoZ9GAiEAz1kRziCbjpDOS0vAXCbtr0vV3UWRbuV9Rs6AGi/azZE="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"bminer","email":"miner.blake@gmail.com"},"maintainers":[{"name":"bminer","email":"miner.blake@gmail.com"}],"deprecated":"Probably doesn't work in Node 1+.  Use serialport lib instead."},"0.2.3":{"name":"trivial-port","version":"0.2.3","description":"Node.js library to open serial ports for reading and writing","main":"serialport.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/bminer/trivial-port.git"},"keywords":["serial","port","node"],"author":{"name":"Blake Miner","email":"miner.blake@gmail.com"},"engines":{"node":">=0.8"},"license":"MIT","bugs":{"url":"https://github.com/bminer/trivial-port/issues"},"_id":"trivial-port@0.2.3","dist":{"shasum":"4537bbc4dafc83eb844871742cd37d6415dadc56","tarball":"https://registry.npmjs.org/trivial-port/-/trivial-port-0.2.3.tgz","integrity":"sha512-kfazbnPk9Xgrzxasl+4e/hJaZ9MyiytEUM4E0Me6ePCu8xIx1iyDw4SAOr6GH7XuTGhPQo65fzpwmdtpRFFb2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEGhwQ6QJBjlJumsFi121TxrQyiPfqRosgww9bNq96HLAiEAiCky70ThhHVG0cpOsNezXixDIWMpzb8xT3p9eEwMOtM="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"bminer","email":"miner.blake@gmail.com"},"maintainers":[{"name":"bminer","email":"miner.blake@gmail.com"}],"deprecated":"Probably doesn't work in Node 1+.  Use serialport lib instead."},"0.3.0":{"name":"trivial-port","version":"0.3.0","description":"Node.js library to open serial ports for reading and writing","main":"serialport.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/bminer/trivial-port.git"},"keywords":["serial","port","node"],"author":{"name":"Blake Miner","email":"miner.blake@gmail.com"},"contributors":[{"name":"Mark Buster"}],"engines":{"node":">=0.8"},"license":"MIT","bugs":{"url":"https://github.com/bminer/trivial-port/issues"},"_id":"trivial-port@0.3.0","dist":{"shasum":"61b1c8da65983660b927476ec2157f1e9118a74a","tarball":"https://registry.npmjs.org/trivial-port/-/trivial-port-0.3.0.tgz","integrity":"sha512-tjORwxiQ5eBmVmE0YdCxFTYDOrWDm8kiKIe6/M36o4QB7ZkaOrybrSPTrWOg01TetHWulpkKU8fyZO1FhKPXRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEsrlbOpxck2imtvUmCoJkE/6JalCJEB5zgQGTLz+9WCAiEAjlWGKHOoBY0itK+BPabVhCpRbkSQgVPqoLZPBTzeNOo="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"bminer","email":"miner.blake@gmail.com"},"maintainers":[{"name":"bminer","email":"miner.blake@gmail.com"}],"deprecated":"Probably doesn't work in Node 1+.  Use serialport lib instead."},"0.3.1":{"name":"trivial-port","version":"0.3.1","description":"Node.js library to open serial ports for reading and writing","main":"serialport.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/bminer/trivial-port.git"},"keywords":["serial","port","node"],"author":{"name":"Blake Miner","email":"miner.blake@gmail.com"},"contributors":[{"name":"Mark Buster"}],"engines":{"node":">=0.8.8"},"os":["!win32"],"license":"MIT","bugs":{"url":"https://github.com/bminer/trivial-port/issues"},"gitHead":"b367cf962b35fafb30b2326c30c5ac7c80d18293","homepage":"https://github.com/bminer/trivial-port","_id":"trivial-port@0.3.1","_shasum":"c51308d6e44b0c07b216303260b19c1af667f418","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.31","_npmUser":{"name":"bminer","email":"miner.blake@gmail.com"},"maintainers":[{"name":"bminer","email":"miner.blake@gmail.com"}],"dist":{"shasum":"c51308d6e44b0c07b216303260b19c1af667f418","tarball":"https://registry.npmjs.org/trivial-port/-/trivial-port-0.3.1.tgz","integrity":"sha512-LrZ7on4B2vAnMuySc1twy/Tgu13dPL+F/M2+ZL6ke17qU03UbdBi5NUmn34k4265y6k8F7U+rnTT33kJ+lHFcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFwLZIN5jkpdArPU60c5jzrMwgfKtucLFI2EAKoyQwipAiEA0GKHtp7kTp30j9bpI0AejuDNMVHjRa3KYfJNTnBkzQo="}]},"deprecated":"Probably doesn't work in Node 1+.  Use serialport lib instead."},"0.3.2":{"name":"trivial-port","version":"0.3.2","description":"Node.js library to open serial ports for reading and writing","main":"serialport.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/bminer/trivial-port.git"},"keywords":["serial","port","node"],"author":{"name":"Blake Miner","email":"miner.blake@gmail.com"},"contributors":[{"name":"Mark Buster"}],"engines":{"node":">=0.8.8"},"os":["!win32"],"license":"MIT","bugs":{"url":"https://github.com/bminer/trivial-port/issues"},"gitHead":"7bd740c4ed5903045edde7582ea42325c9a49308","homepage":"https://github.com/bminer/trivial-port","_id":"trivial-port@0.3.2","_shasum":"af7b115e07c67e6c22e366d7c22405b1eeefc64f","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.31","_npmUser":{"name":"bminer","email":"miner.blake@gmail.com"},"maintainers":[{"name":"bminer","email":"miner.blake@gmail.com"}],"dist":{"shasum":"af7b115e07c67e6c22e366d7c22405b1eeefc64f","tarball":"https://registry.npmjs.org/trivial-port/-/trivial-port-0.3.2.tgz","integrity":"sha512-NNMtMZCZanq9MfWfX9kxMAu3clWwcG1f8+gOrTnbFyyGeCK94hPnqZvK39vKzqHaSLyM2zYohCJ9rSFXs3VscQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIENnQTzI6we3FZm6b4XXmNZtZxZbyeDlz0q8kIkhmzX3AiA0xjoxHol+iKkwcYo37+LHVMxDvsWFZu5DfdXhGlQNRw=="}]},"deprecated":"Probably doesn't work in Node 1+.  Use serialport lib instead."}},"readme":"trivial-port\n============\n\nNode.js library to open serial ports for reading and writing\n\nOperating System Support\n------------------------\n- **Linux** - Works\n- **Mac OSX** - May work with a few minor tweaks\n- **Windows** - It should work using the [`MODE`]\n(http://www.computerhope.com/modehlp.htm) command instead of `stty`.\nCheckout [this StackOverflow post](http://stackoverflow.com/questions/5728691/nodejs-reading-tty-serial)\n\nWhy?\n----\nNode doesn't really support talking to serial ports at the moment.\n\nUsage\n-----\n```javascript\nvar SerialPort = require(\"trivial-port\");\nvar port = new SerialPort();\nport.initialize();\nport.on(\"data\", function(chunk) {\n\tconsole.log(\"Incoming:\", chunk);\n})\nport.write(\"Hello, World!\");\n```\n\nTrivial-port implements a [Duplex stream](http://nodejs.org/api/stream.html#stream_class_stream_duplex)\nfor reading from and writing to a serial port.\n\nThis implementation uses [`stty`](http://www.freebsd.org/cgi/man.cgi?query=stty&sektion=1)\nto initialize the stream; then, it simply reads from or writes to the serial\nport using the [`tty` Node.js library](http://nodejs.org/api/tty.html).\n\n\n### `var port = new SerialPort(options);`\n\nThe options object allows you to pass named options to the serial port during\ninitialization. The valid attributes for the options object are the following:\n\n- `serialPort` - the serial port device name (required)\n- `baudRate` - Baud Rate (defaults to 9600)\n- `dataBits` - Data Bits - Must be one of: 8, 7, 6, or 5. (defaults to 8)\n- `stopBits` - Stop Bits - Must be one of: 1 or 2. (defaults to 1)\n- `parity` - Parity - Must be one of: 'none', 'odd', 'even',\n\t'mark', 'space' (defaults to 'none')\n- `sttyPath` - the path to the `stty` command (defaults to /bin/stty)\n- `initTimeout` - maximum initialization duration (defaults to 10 seconds);\n\tset to `null` to allow an infinite amount of time\n- `sttyArgs` - an array of additional arguments to pass to the `stty` command\n\n### `port.initialize([cb])`\n\nSets the appropriate serial port options and opens the serial port.  If `cb`\nis specified, it is called when the port has been opened. `cb` is of the form\n`cb(err)`.\n\n### `port.close([cb])`\n\nCloses the serial port.  If `cb` is specified, it is called when the port\nhas been closed.  `cb` is of the form `cb(err)`.\n\n### Lots more methods\n\nThe `SerialPort` class inherits all of the methods and events of [Readable]\n(http://nodejs.org/api/stream.html#stream_class_stream_readable) and [Writable]\n(http://nodejs.org/api/stream.html#stream_class_stream_writable) interfaces.","maintainers":[{"name":"bminer","email":"miner.blake@gmail.com"}],"time":{"modified":"2022-06-27T21:32:25.921Z","created":"2014-02-10T22:48:45.385Z","0.1.0":"2014-02-10T22:48:46.366Z","0.2.0":"2014-04-02T18:16:00.270Z","0.2.1":"2014-04-29T18:12:50.271Z","0.2.2":"2014-05-02T16:08:36.563Z","0.2.3":"2014-05-06T15:19:09.393Z","0.3.0":"2014-06-04T17:36:53.604Z","0.3.1":"2015-03-20T20:16:16.403Z","0.3.2":"2015-03-23T21:12:12.923Z"},"readmeFilename":"README.md","author":{"name":"Blake Miner","email":"miner.blake@gmail.com"},"repository":{"type":"git","url":"https://github.com/bminer/trivial-port.git"},"keywords":["serial","port","node"],"bugs":{"url":"https://github.com/bminer/trivial-port/issues"},"license":"MIT","users":{"lwille":true},"contributors":[{"name":"Mark Buster"}],"homepage":"https://github.com/bminer/trivial-port"}