https://github.com/rosscomputerguy/os.js-hardware-serviceprovider
A service provider that adds hardware acces.
https://github.com/rosscomputerguy/os.js-hardware-serviceprovider
Last synced: 2 months ago
JSON representation
A service provider that adds hardware acces.
- Host: GitHub
- URL: https://github.com/rosscomputerguy/os.js-hardware-serviceprovider
- Owner: RossComputerGuy
- License: apache-2.0
- Created: 2018-11-27T17:28:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T02:11:21.000Z (almost 3 years ago)
- Last Synced: 2025-01-19T11:44:41.565Z (4 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OS.js Hardware Service Provider
A service provider that adds hardware access.
# Install
In the OS.js's V3 install directory, run:
```
$ npm install --save osjs-hardware-provider
```
In `src/client/index.js`'s `init()` function, add `osjs.register(require("osjs-hardware-provider/client.js"));` before `osjs.boot()`
In `src/server/index.js`, add `osjs.register(require("osjs-hardware-provider/server.js"));` before `process.on('SIGTERM', () => osjs.destroy());`
Now run `npm build` and you're done.