Node.js package to access serial ports. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
npm install shxt.serialportAccess serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
> Go to https://serialport.io/ to learn more, find guides and api documentation.
serialport package api docsserialport Chances are you're looking for the serialport package which provides a good set of defaults for most projects. However it is quite easy to mix and match the parts of serialport you need.@serialport/bindings bindings for Linux, Mac and Windows@serialport/binding-abstract as an abstract class to use if you're making your own bindings@serialport/binding-mock for a mock binding package for testing- @serialport/stream our traditional Node.js Stream interface
Parsers are used to take raw binary data and transform them into usable messages. This may include tasks such as converting the data to text, emitting useful chunks of data when they have been fully received, or even validating protocols.
Parsers are traditionally Transform streams, but Duplex streams and other non stream interfaces are acceptable.
- @serialport/parser-byte-length
- @serialport/parser-cctalk
- @serialport/parser-delimiter
- @serialport/parser-readline
- @serialport/parser-ready
- @serialport/parser-regex
- @serialport/parser-slip-encoder
git clone git@github.com:serialport/node-serialport.gitnpm install to setup local package dependencies (run this any time you depend on a package local to this repo)npm test to ensure everything is working properlynpm run generate to generate a new projectYou can develop the docs by running
``bash`
npm run docs:dev
And build them by running
`bash``
npm run docs
Docs are automatically built with netlify including previews on branches. The master branch is deployed to https://serialport.io
SerialPort is currently employees a governance with a group of maintainers, committers and contributors, all fixing bugs and adding features and improving documentation. You need not apply to work on SerialPort, all are welcome to join, build, and maintain this project.
- A Contributor is any individual creating or commenting on an issue or pull request. By participating, this is you.
- Committers are contributors who have been given write access to the repository. They can review and merge pull requests.
- Maintainers are committers representing the required technical expertise to resolve rare disputes.
If you have a PR that improves the project people in any or all of the above people will help you land it.
Maintainers