UNPKG
better-crowdin
Version:
latest (1.0.1)
1.0.1
1.0.0
Crowdin CLI on steroids
better-crowdin
/
lib
/
utils
/
getBasePath.js
9 lines
(7 loc)
•
209 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
path
=
require
(
'path'
);
module
.exports =
function
getBasePath
({ config, basePath, relativePath })
{
if
(relativePath) {
return
path
.join(
path
.dirname(
config
), basePath); }
return
basePath; };