UNPKG
epd7x5-v2
Version:
latest (0.0.1)
0.0.1
node module for the 7.5 inch waveshare epaper display
github.com/vViktorPL/epd7x5
vViktorPL/epd7x5
epd7x5-v2
/
install.js
9 lines
(8 loc)
•
294 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
os =
require
(
'os'
);
const
spawn =
require
(
'cross-spawn'
);
if
(os.
arch
() ===
'arm'
) {
console
.
log
(
'Building native module...'
); spawn.
sync
(
'npm'
, [
'run'
,
'native_build'
], {
stdio
:
'inherit'
}); }
else
{
console
.
log
(
'Non ARM architecture detected. Skipping native build.'
); }