1.1.0 • Published 7 months ago

rootat v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

ReRoot

This library is designed to limit the require path in the specific directory

Intall

npm install rerootat

Usage

// Where the cloest node_modules isa
require('reroot').project_root;

// Assign where does the root '/' start from
require('reroot').search_root = "/PATH/YOU/WANT/TO/START";

// Locate and load module starts from path location you specified previously
require('@/a/b/c'); // This will load module at "/PATH/YOU/WANT/TO/START/a/b/c"
1.1.0

7 months ago

1.0.0

7 months ago