-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
42 lines (33 loc) · 808 Bytes
/
index.js
File metadata and controls
42 lines (33 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
'use strict';
/**
* @module
* @author Oleg Dutchenko <dutchenko.o.dev@gmail.com>
* @version 1.0.0
*/
// ----------------------------------------
// Imports
// ----------------------------------------
const path = require('path');
// ----------------------------------------
// Private
// ----------------------------------------
/**
* @type {string}
* @private
*/
const _cwd = process.cwd();
// ----------------------------------------
// Public
// ----------------------------------------
/**
* Resolve path from CWD (Current Working Directory)
* @param {...string} paths
* @returns {string}
*/
function fromCWD (...paths) {
return path.join(_cwd, ...paths);
}
// ----------------------------------------
// Exports
// ----------------------------------------
module.exports = fromCWD;