{"_id":"@acst11/node-raspberrypi-usbboot","_rev":"2-59dbbf1319263cd10424f453c1178099","name":"@acst11/node-raspberrypi-usbboot","dist-tags":{"latest":"0.3.0"},"versions":{"1.0.1":{"name":"@acst11/node-raspberrypi-usbboot","version":"1.0.1","description":"Transforms Raspberry Pi Compute Modules and Zeros to mass storage devices.","main":"build/index.js","types":"build/index.d.ts","scripts":{"prettier":"balena-lint --fix --typescript lib/*.ts","lint":"balena-lint --typescript lib/*.ts","build":"npm run lint && rimraf build && tsc","prepublish":"npm run build"},"author":{"name":"Alexis Svinartchouk","email":"alexis@balena.io"},"repository":{"type":"git","url":"git+https://github.com/balena-io-modules/node-raspberrypi-usbboot.git"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","usb":"^1.7.2"},"devDependencies":{"@balena/lint":"^5.3.0","@types/debug":"^4.1.5","@types/node":"^8.10.61","@types/usb":"^1.5.1","rimraf":"^3.0.2","ts-node":"^8.10.2","typescript":"^4.1.2"},"versionist":{"publishedAt":"2021-09-30T17:06:19.713Z"},"bugs":{"url":"https://github.com/balena-io-modules/node-raspberrypi-usbboot/issues"},"homepage":"https://github.com/balena-io-modules/node-raspberrypi-usbboot#readme","directories":{"lib":"lib"},"gitHead":"1a4d68b2e381bfe0ef0fa71614943e559ad3265b","_id":"@acst11/node-raspberrypi-usbboot@1.0.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-gWfRoLGFu9S37nGjk1HLVbam/BjvDCCTsrI461eY98o+zVNo0HEYkBUQEIVTbt8TvbNDXap3CBXgLvgX8Pve/g==","shasum":"2f674214d9d5d2269c2fc182c4c1214dce842e34","tarball":"https://registry.npmjs.org/@acst11/node-raspberrypi-usbboot/-/node-raspberrypi-usbboot-1.0.1.tgz","fileCount":27,"unpackedSize":28479632,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhngF0CRA9TVsSAnZWagAAjG8P/2NFabuWC8pMeg3AeOVq\nK8eSPALnx0gpyq4uMAkjdS8y1hAYZ0D4PECUmh+B6b+CZ1+NPTccYgjDipbB\nm/bxNCGMHDrQEk122+A4YJgM6OdlG26LPWhKl/eZUaWCDMno5pnrmaAl28tK\nyvC+vv5i9w+RGSyVoV8Jj3H2m5quPhn1q9MgUAYOltlrcXnOA4ZbsBXBAGn+\nVNN64/WIfWAaK0vIj09Cw7ryj68JttC/3RX5QYxRzLQ6oBDt5FIwsxNuXOoX\nxBNhd/OdmjUJaGTWnoPlj53BuNb0Ruz/A4G01tNk9adrTYj8ZQ9Bzm2YrmXQ\nTu6DVDtEFMUvhGG4UmC3rg89i4s5fVap8poexG2BfjlMj8dO9QHuNiE1rmx8\nISR+Ga1tdH6FdodEUYiYPZCl2RhA+Pcqfpe5HVGbxCUqqIG2fFNKv9km3MEV\nWhwliqXkEK1qsmb5mZdPQKJuWWL1T4uIh0QLF3fjT9mLSPE3qy5CzUeNLHxH\nZHsc7rMRKFlKfE0JgJTyd7RJXvdTdV7BhaMMvm7wbVbH7BqeIm1QH/ScpPKx\nbSXCWnENVZUSprxfZEFHHxPEAibDrPS3iCxlOTFX0UOUib/fipMrxSncY5w9\nv09BAUj1qD5KkVVopYhQgKDFuhgW7UWSoLyEGyO5Xx/cF1ybxX9lJPdWTpOh\nTqKe\r\n=YZzF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGkoz4N4u/2BPOaVH+YUhtdQJY9PJUEt1ElMYmiUGDzQIgJo4O/B+2TznlHlf+jCh/XFGV0xePyKPh81+rg6rp5h0="}]},"_npmUser":{"name":"acst11","email":"adoria123321@gmail.com"},"maintainers":[{"name":"acst11","email":"adoria123321@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-raspberrypi-usbboot_1.0.1_1637745011793_0.5588747073940219"},"_hasShrinkwrap":true},"0.3.0":{"name":"@acst11/node-raspberrypi-usbboot","version":"0.3.0","description":"Transforms Raspberry Pi Compute Modules and Zeros to mass storage devices.","main":"build/index.js","types":"build/index.d.ts","scripts":{"prettier":"balena-lint --fix --typescript lib/*.ts","lint":"balena-lint --typescript lib/*.ts","build":"npm run lint && rimraf build && tsc","prepublish":"npm run build"},"author":{"name":"Alexis Svinartchouk","email":"alexis@balena.io"},"repository":{"type":"git","url":"git+https://github.com/balena-io-modules/node-raspberrypi-usbboot.git"},"license":"Apache-2.0","dependencies":{"@balena.io/usb":"^1.3.14","debug":"^4.1.1"},"devDependencies":{"@balena/lint":"^5.3.0","@types/debug":"^4.1.5","@types/node":"^8.10.61","@types/usb":"^1.5.1","rimraf":"^3.0.2","ts-node":"^8.10.2","typescript":"^4.1.2"},"gitHead":"97904f13629774fdbf225831a894f5672bdadb37","bugs":{"url":"https://github.com/balena-io-modules/node-raspberrypi-usbboot/issues"},"homepage":"https://github.com/balena-io-modules/node-raspberrypi-usbboot#readme","_id":"@acst11/node-raspberrypi-usbboot@0.3.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-L8s0iLeRO0+K7j0+uNM85zsJXBMHR818IWCf20X2q//EDKqtuz7rnEBM33zDkX9uUCQn+VEqAZlNWPte7pJv9A==","shasum":"4e5a14062cb22f32f57bd4c10691a18a1f20a073","tarball":"https://registry.npmjs.org/@acst11/node-raspberrypi-usbboot/-/node-raspberrypi-usbboot-0.3.0.tgz","fileCount":26,"unpackedSize":28403368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnmqsCRA9TVsSAnZWagAAZ6UP+wWwzNFZYoUR2UvFdLSj\nkz2WBVn4knqRh/dWSqysFxoJ7wmVjGWOgTGLqgg0CKk605PAeaZ+I6t/Mnj0\nKv2nf7KBLjgt+dlp6lcm+m0rpDNOUCzd6kjjMTaUQ3VjVOo3EJ6yRafu7oS4\nn8bVKtE+o6FozGbR+NIJBdU5gGHSCDAVz1zCScliK/nyOT7S4d26AbxgDuio\nlHv/S7iCjIdB3jbOa7zkr8ekmv9XhM9e12jnUE+t3xXCBRcrrRq5GfIvImtt\nTMJzG/G1My76MrrSCBg8K3hGOnNw9bDIJkrhzQWs/PLgPi1gK7+D4e6vI0Kl\n0Q29EhX+Odz0eCB38RZI/JXBgR7tZYKCNUzNwD54R8fY8xYxpAlf9IlSSUjD\nlw2+Kvw9dHC625WisejcvH254hDBiXa/XtsBvQ5NczN+ZgyEWSb+sVtjBNI5\nwf0iFSvU3S6+eLQAIec8VeJ8gH2cYJRYB67DWENV2MUgORSTynRGx359MAJv\nfIzXglb8YlPEMKMszRcq6P08QRBfbYP3VouqxbbVNzKr5IEYuDqBK8x+RMUX\nryGqZkuRvbHbmC6x9b6nUY1+7AhzAle6lu24/IaEHyMPr186gi5chn3s5iiM\nNSXx3tOaKK/0HtC/FohwCsdBzuK7OR83zrpfXhlVX6af1qaV4F6xKMLA32lr\njRVP\r\n=m1lf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEVT9x0ESWYNsdnCDCfpInhGcaispApubrtZMvSA7fR+AiEApnObfcLH5SnrxmNrQnFFo3jwelnGt+AbcftUvE/k/YA="}]},"_npmUser":{"name":"acst11","email":"adoria123321@gmail.com"},"directories":{},"maintainers":[{"name":"acst11","email":"adoria123321@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-raspberrypi-usbboot_0.3.0_1637771948043_0.17510659385744676"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-24T09:10:11.744Z","1.0.1":"2021-11-24T09:10:12.309Z","modified":"2022-04-04T11:16:43.414Z","0.3.0":"2021-11-24T16:39:08.424Z"},"maintainers":[{"name":"acst11","email":"adoria123321@gmail.com"}],"description":"Transforms Raspberry Pi Compute Modules and Zeros to mass storage devices.","homepage":"https://github.com/balena-io-modules/node-raspberrypi-usbboot#readme","repository":{"type":"git","url":"git+https://github.com/balena-io-modules/node-raspberrypi-usbboot.git"},"author":{"name":"Alexis Svinartchouk","email":"alexis@balena.io"},"bugs":{"url":"https://github.com/balena-io-modules/node-raspberrypi-usbboot/issues"},"license":"Apache-2.0","readme":"# node-rasbberrypi-usbboot\n\nTransforms Raspberry Pi Compute Modules and Zeros to mass storage devices.\n\n## Usage\n\nFor usage, see [the example](lib/main.ts).\n\nOn most GNU/Linux distributions, you'll need to run this as root.\n\nImport `UsbbootScanner`, instanciate it, then on the instance attach the following event listeners:\n * `attach`: a device was connected and we started transforming it to a mass storage device;\n * `detach`: a device was detached, note that this could mean that it was physically detached or that it was successfully transformed into a mass storage device;\n * `error`: an error occured.\n\nThe `attach` and `detach` event listeners will get a `UsbbootDevice` as parameter. This object will emit `progress` events which parameter is the percentage of completion.\nThe progress will be `100` when the device reattaches itself as a mass storage device. This will be followed by a `detach` event from the `UsbbootScanner` (because the device\nwill no longer be a usbboot device).\n\n## Details\n\nThis is heavily based on [Raspberry Pi USB booting code](https://github.com/raspberrypi/usbboot).\n\nIt should support Raspberry Pi Compute Modules and Raspberry Pi Zeros.\n\nThis module will upload a slightly more complex kernel to the pis than the original code above, it allows the devices\nto reach higher write speeds at the cost of a longer preparation phase.\n\n## Troubleshooting\n\nIf you have any trouble using this module, please check if it works with the original usb boot link above.\n\nYou can enable debug output by setting the `DEBUG` env var to `node-raspberrypi-usbboot`.\n","readmeFilename":"README.md"}