node-pivotpi
v0.0.1
Published
Drivers and examples for using the PivotPi in Node.js
Downloads
3
Maintainers
Readme
PivotPi library for Node.js
PivotPi is a Servo Controller for the Raspberry Pi!
Learn more about the PivotPi Servo Controller for the Raspberry Pi here.
Getting Ideas
Need an idea to get started? We have a few project examples to get your creative juices flowing.
Getting Help
Need help? We [have a forum here where you can ask questions or make suggestions](http://forum.dexterindustries.com/c/pivotpi-servo-controller-for-raspberry-pi.
See more at the PivotPi Site
Install/Update Node.js
This library supports Node.js 8.x version, we provide a couple of bash scripts to install/uninstall the proper Node.js version. To install NVM (Node Version Manager), Node.js and NPM:
- Run the install script:
bash ./NodeJS/install.sh
- Follow the instructions
To uninstall NVM, Node.js and NPM:
- Run the install script:
bash ./NodeJS/uninstall.sh
- Follow the instructions
Use in your application
This library is published as a NPM package.
- Add it to your project:
npm install node-pivotpi --save
- Use it in your code:
const PivotPi = require('node-pivotpi')
For any initial hint please check the "examples" folder. Feel free to use the forum for any extra help.
License
Please review the LICENSE.md file for license information.
Notes for developers
Features
- Build with Babel. (ES6 -> ES5)
- Test with mocha.
- Cover with istanbul.
- Check with eslint.
- Deploy with Travis.
Commands
npm run clean
- Removelib/
directorynpm test
- Run tests. Tests can be written with ES6 (WOW!)npm test:watch
- You can even re-run tests on file changes!npm run cover
- Yes. You can even cover ES6 code.npm run lint
- We recommend using airbnb-config. It's fantastic.npm run test:examples
- We recommend writing examples on pure JS for better understanding module usage.npm run build
- Do some magic with ES6 to create ES5 code.