1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const lodash_1 = require("lodash");
|
4 | const path_1 = require("path");
|
5 | const splitRegex = new RegExp(path_1.sep, 'g');
|
6 | function lastDirname(path) {
|
7 | return lodash_1.last((path || process.cwd()).split(splitRegex));
|
8 | }
|
9 | exports.lastDirname = lastDirname;
|