1.0.2 • Published 3 years ago

@jikurata/root v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

5 years ago