@rodrigogs/ispi
v1.1.1
Published
Check if the program is running on a Raspberry Pi
Downloads
2
Readme
ispi
Check if the program is running on a Raspberry Pi.
Usage
It may be used as a lib:
$ npm install @rodrigogs/ispi --save
const ispi = require('@rodrigogs/ispi');
// Async
ispi()
.then(isPi => console.log(isPi)) // true or false
.catch(err => console.error(err));
// Sync
ispi.sync(); // true or false
Or as a cli:
$ npm install @rodrigogs/ispi -g
$ ispi
true
License
Licence © Rodrigo Gomes da Silva