The C++ bindings for the node serialport project. (Fork)
Find a file
Francis Gulotta 7cee2020f1
chore: use Prettier for formatting (#1635)
This is a crazy diff that's unreadable. Prettier has gained a lot of traction I personally like it and a lot of code looks like this these days. It also supports linting and formatting that eslint doesn't on its own. That alone helps keep the code more standard. This PR is equivalent of ripping off a bandaid.

- Add prittier
- `npm run format`
2018-08-25 19:05:56 -07: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: use Prettier for formatting (#1635) 2018-08-25 19:05:56 -07: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
CHANGELOG.md chore: merge serialport-utils into main repo 2018-07-24 03:06:08 -04: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
lerna.json chore: drop node 4 and upgrade to node 6 features (#1633) 2018-08-25 18:41:39 -07:00
LICENSE Pull README edits into the template and JS Doc 2017-06-18 21:24:51 -04:00
package.json chore: use Prettier for formatting (#1635) 2018-08-25 19:05:56 -07:00
plopfile.js chore: merge serialport-utils into main repo 2018-07-24 03:06:08 -04:00
PUBLISHING.md chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
README.md chore: split out more packages (#1611) 2018-08-25 09:31:34 -07: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

npm Gitter chat Known Vulnerabilities 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 serialport the only package you need to get started.
  • Serialport Stream @serialport/stream our traditional stream interface with nothing else
  • Parser Byte Length
  • Parser cctalk
  • Parser delimiter
  • Parser readline
  • Parser ready
  • Parser regex
  • Parser slip-encoder
  • Abstract Binding @serialport/binding-abstract as an abstract class for all bindings
  • Mock Binding @serialport/binding-mock for a mock binding package

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.

Developing node serialport projects

  1. Clone this repo git clone git@github.com:node-serialport/node-serialport.git
  2. Run npx lerna bootstrap 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

API Documentation

You can generate the docs by running

npm run docs

And browsing to ./docs/index.html.

License

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