@glosfer/bitbox-nodejs
v1.0.3
Published
Node implementation of the communication layer using `node-hid` (USB)
Downloads
16
Readme
BitBox NodeJS
Node implementation of the communication layer using node-hid
(USB).
** This is not officially maintained by Digital BitBox developers. But we will do our best to keep it updated. **
Example
import { hid } from "@glosfer/bitbox-nodejs";
const hidInfo = hid.getDeviceInfo()
if (!hidInfo) {
console.log(`Digital BitBox is not plugged in`)
} else {
console.log(`Successfully retrieved info: ${hidInfo}`)
}
Install dependencies
npm install
Deploy
Checklist before deploying a new release:
- you have the right in the glosfer org on NPM
- you have run
npm login
once (checknpm whoami
) - Go to master branch
- your master point on glosfer repository (check with
git config remote.$(git config branch.master.remote).url
and fix it withgit branch --set-upstream master origin/master
) - you are in sync (
git pull
) and there is no changes ingit status
- your master point on glosfer repository (check with
- Run
npm
once, there is still no changes ingit status
deploy a new release
npm run clean
npm install
npm test
npm publish
then, go to /releases and create a release with change logs.
Issues & Pull Requests
If you have an issue, feel free to add it to the Issues tab. If you'd like to help us out, the Pull Request tab is a great place to start.
If you have found a security bug, please contact us at [email protected].
Credits
Kudos to SHIFT team (Digital BitBox hardware wallet developers)