https://github.com/rodrigogs/ispi
Check if the program is running on a Raspberry Pi
https://github.com/rodrigogs/ispi
checker raspberry raspberry-pi raspberrypi
Last synced: 2 months ago
JSON representation
Check if the program is running on a Raspberry Pi
- Host: GitHub
- URL: https://github.com/rodrigogs/ispi
- Owner: rodrigogs
- License: bsd-3-clause
- Created: 2018-04-02T05:56:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T22:02:19.000Z (over 3 years ago)
- Last Synced: 2025-12-27T01:40:16.907Z (6 months ago)
- Topics: checker, raspberry, raspberry-pi, raspberrypi
- Language: JavaScript
- Size: 212 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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`
```javascript
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`
```bash
$ ispi
true
```
## License
[Licence](https://github.com/rodrigogs/ispi/blob/master/LICENSE) © Rodrigo Gomes da Silva