@jikurata/root
v1.0.2
Published
Locates and sets the project root to process.env.root
Downloads
7
Readme
root v1.0.2
Locate project root path
Install
npm install @jikurata/rootUsage
// 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/directoryChangelog
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
