node-can-bridge NPM package
This package enables Node.js applications to use a CAN bus over USB.
Compiling
Prerequisites
- Supported version of NodeJS (preferably a LTS version)
- A C/C++ compiler that supports C++20
- Internet connection to pull from upstream CANBridge
Steps
- Clone repository
- Run
npm i
to install dependencies and compile the Node APIs
- To test, run
npm run pretest
to prepare the testing and npm test
to actually perform the testing of the repository
Making a release (for repository owners)
- Check out the
main
branch
- Update
version
field in package.json
- Run
npm install
- Commit change to git
- Run
git tag v<version>
- Run
git push
- Run
git push --tags
- Run
npm publish --access public
- Create a new release on GitHub with an explanation of the changes