UNPKG
@readme/nodegit
Version:
latest (3.2.0)
3.2.0
3.1.0
3.0.0
2.1.1
2.0.3
2.0.2
2.0.1
2.0.0
1.2.0
1.1.1
1.1.0
1.1.0-beta.1
1.1.0-alpha.7
1.1.0-alpha.4
1.0.0
1.0.0-alpha.6
1.0.0-alpha.4
1.0.0-alpha.1
0.28.0-alpha.26
Node.js libgit2 asynchronous native bindings
nodegit.org
readmeio/nodegit
@readme/nodegit
/
utils
/
getElectronOpenSSLRoot.js
11 lines
(7 loc)
•
267 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);