UNPKG
pj-nodegit
Version:
latest (0.28.2)
0.28.2
0.28.1
0.27.12
0.27.11
0.27.1
0.27.0
0.27.0-x
0.26.41
0.26.4
0.18.6
0.18.5
0.18.4
0.18.3
0.18.1
Node.js libgit2 asynchronous native bindings
nodegit.org
pj-nodegit/nodegit
pj-nodegit
/
utils
/
getElectronOpenSSLRoot.js
11 lines
(7 loc)
•
277 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
path
=
require
(
"path"
);
if
(process.argv.length <
3
) { process.
exit
(
1
); } const [, , moduleRootDir] = process.argv; const openSSLRoot = process.env.npm_config_openssl_dir ||
path
.join(moduleRootDir,
'vendor'
,
'openssl'
); process.
stdout
.
write
(openSSLRoot);