@jikurata/root

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @jikurata/root

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

2.01 kB

Total Files

4

Last publish

Collaborators

  • jikurata