UNPKG
onions-node
Version:
latest (0.0.2)
0.0.2
0.0.1
onions-node backend
onions-node
/
lib
/
utils.js
11 lines
(9 loc)
•
202 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
path =
require
(
'path'
)
const
fs =
require
(
'fs'
)
exports
.
resolvePathByExecPath
=
(
p, execPath
) =>
{
if
(!path.
isAbsolute
(p)) {
return
path.
resolve
(execPath, p) }
else
{
return
p } }