@augment-vir/node
Version:
A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.
13 lines (12 loc) • 368 B
JavaScript
import { parse } from 'node:path';
function getSystemRootPath() {
return parse(process.cwd()).root;
}
/**
* The root path of the system containing the cwd.
*
* @category Path : Node
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export const systemRootPath = getSystemRootPath();