Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

root-path

Normalize paths, joined with project's root path

NPM Version

NOTE: The directory with package.json is considered a project's root directory.

install

npm install --save root-path

usage

var root = require('root-path');

var x1 = root();
// returns {PROJECT_ROOT}

var x2 = root('path');
// returns {PROJECT_ROOT}/path

var x3 = root('path1', 'path2');
// returns {PROJECT_ROOT}/path1/path2

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages