enola
Version:
API and CLI for obliterating files and directories
17 lines (16 loc) • 479 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
/**
* Join all arguments using the operating system's path separator, and append
* the result to the current working directory.
*
* @param {string} dir
* The strings to join using the operating system's path separator.
* @return {string}
* The path.
*/
function cwd(...dir) {
return path.join(process.cwd(), ...dir);
}
exports.cwd = cwd;