bit-bin
Version:
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b
32 lines (26 loc) • 623 B
JavaScript
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = currentDirName;
function path() {
const data = _interopRequireWildcard(require("path"));
path = function () {
return data;
};
return data;
}
/**
* get the current working dir name.
* @name currentDirName
* @returns {string} current working dir name
* @example
* ```js
* currentDirName() // => 'bit'
* ```
*/
function currentDirName() {
const currentDir = process.cwd();
return path().basename(currentDir);
}
;