A printed circuit board Gerber and drill file plotter. Implemented as a Node transform stream that consumes plotter command objects (for example, those output by mcous/gerber-parser) and outputs PCB image objects.
$ npm install gerber-plotter
var fs =var gerberParser =var gerberPlotter =var parser =var plotter =plotterplotterfs
developing and contributing
Tests are written in Mocha and run in Node and a variety of browsers with Zuul and Open Sauce. All PRs should be accompanied by unit tests, with ideally one feature / bugfix per PR. Code linting happens with ESLint automatically post-test.
$ npm run lint- lints code
$ npm run test- runs Node unit tests
$ npm run test:watch- runs unit tests and re-runs on changes
$ npm run test:browser- runs tests in a local browser
$ npm run test:sauce- runs tests in Sauce Labs on multiple browsers
- Sauce Labs account required
- Local .zuulrc required
$ npm run ci- Script for CI server to run
npm testand sends coverage report to Coveralls
- If not a PR, runs browser tests in Sauce
- Not designed to (and won't) run locally