UNPKG
@figma/nodegit
Version:
latest (0.28.0-figma.9)
0.28.0-figma.9
0.28.0-figma.8
0.28.0-figma.6
0.28.0-figma.4
0.28.0-figma.3
0.28.0-figma.2
0.28.0-figma.1
0.28.0-figma.0
Node.js libgit2 asynchronous native bindings
nodegit.org
nodegit/nodegit
@figma/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);