Skip to content

warrenfalk/main-root

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

main-root

Get the root path of the app you are installed in

Works with

  • npm
  • npm link
  • yarn
  • yarn link
  • yarn workspaces
  • yarn 2 (PnP)
  • yarn 2 workspaces
  • pnpm
npm i main-root
yarn add main-root
const mainRoot = require('main-root');
console.log(`Path to root of app: ${mainRoot.path}`);

About

Get the root path of the app you are installed in

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published