The C++ bindings for the node serialport project. (Fork)
Find a file
2018-08-28 22:54:16 -04:00
.generators chore: drop node 4 and upgrade to node 6 features (#1633) 2018-08-25 18:41:39 -07:00
.github chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
bin chore: drop node 4 and upgrade to node 6 features (#1633) 2018-08-25 18:41:39 -07:00
docs chore: drop node 4 and upgrade to node 6 features (#1633) 2018-08-25 18:41:39 -07:00
packages chore(package): update dependencies (#1638) 2018-08-28 22:54:16 -04:00
test chore: use Prettier for formatting (#1635) 2018-08-25 19:05:56 -07:00
.eslintignore chore: change to a monorepo structure with Lerna (#1586) 2018-07-24 01:15:09 -04:00
.eslintrc chore: use Prettier for formatting (#1635) 2018-08-25 19:05:56 -07:00
.gitignore chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
.jsdoc.json chore: change to a monorepo structure with Lerna (#1586) 2018-07-24 01:15:09 -04:00
.travis.yml chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
appveyor.yml chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
CODE_OF_CONDUCT.md Code of Conduct 2016-04-10 00:12:42 -04:00
codecov.yml chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
CONTRIBUTING.md chore: merge serialport-utils into main repo 2018-07-24 03:06:08 -04:00
greenkeeper.json chore: enable greenkeeper monorepo edition 2018-08-28 22:10:27 -04:00
lerna.json chore: use lerna for changelogs 2018-08-25 22:42:45 -04:00
LICENSE Pull README edits into the template and JS Doc 2017-06-18 21:24:51 -04:00
package.json chore(package): update prebuild to version 8.0.1 (#1637) 2018-08-28 21:50:27 -04:00
plopfile.js chore: merge serialport-utils into main repo 2018-07-24 03:06:08 -04:00
PUBLISHING.md chore: use lerna for changelogs 2018-08-25 22:42:45 -04:00
README.md chore: use lerna for changelogs 2018-08-25 22:42:45 -04:00
test-config.json feat(linux): Custom baud rates for linux (eg 250k baudrate) (#1464) 2018-02-05 09:33:11 -05:00
UPGRADE_GUIDE.md chore: merge serialport-utils into main repo 2018-07-24 03:06:08 -04:00

Node Serialport

lerna codecov Build Status Build status Greenkeeper badge

Working with serialports can be hard, this is a collection of projects that make it easier. We currently have the following packages.

  • serialport npm the only package you need to get started.
  • @serialport/stream our traditional stream interface with nothing else
  • @serialport/binding-abstract as an abstract class for all bindings
  • @serialport/binding-mock for a mock binding package
  • Parser Byte Length
  • Parser cctalk
  • Parser delimiter
  • Parser readline
  • Parser ready
  • Parser regex
  • Parser slip-encoder

Quick Answers to Important Questions

Intro to Node-Serialport

Imagine a world where you can write JavaScript to control blenders, lights, security systems, or even robots. That's right—robots! Thanks to Node Serialport, that world is here.

Node-Serialport provides an interface for the low-level serial port code necessary to control Arduino chipsets, X10 interfaces, Zigbee radios, highway signs, lcd screens, cash drawers, motor controllers, sensor packages, fork lifts, modems, drones, CNC machines, plotters, vending machines, ccTalk coin accecptors, SMS Gateways, RFID scanners and much more. If you have a hardware device with a UART we can speak to it. The physical world is your oyster with this goodie.

For a full breakdown of why we made Node-Serialport, please read NodeBots - The Rise of JS Robotics. It explains why one would want to program robots in JS in the first place. It's not being against firmware but we can be better than it.

API Documentation

You can generate the docs by running

npm run docs

And browsing to ./docs/index.html.

Developing node serialport projects

  1. Clone this repo git clone git@github.com:node-serialport/node-serialport.git
  2. Run npm install to setup local package dependencies (run this any time you depend on a package local to this repo)
  3. Run npm test to ensure everything is working properly
  4. Run npm run generate to generate a new project
  5. Add dev dependencies to the root package.json and package dependencies to the package's one.

License

SerialPort packages are all MIT licensed and all it's dependencies are MIT or BSD licensed.