1.0.2 • Published 3 years ago
@jikurata/root v1.0.2
root v1.0.2
Locate project root path
Install
npm install @jikurata/root
Usage
// Sets process.env.root = project root path
// Also returns the project root path
const root = require('@jikurata/root');
console.log(root); // /some/project/directory
console.log(process.env.root); // /some/project/directory
Changelog
v1.0.2
- Fix a conflict with variable declaration for path module
v1.0.1
- Now uses the path module's sep property to be compatible with different operating systems