n-root-path About Get the root path of the project, instead of the '__dirname' or process.cwd() NOTE: typescript supports Installation npm install n-root-path yarn add n-root-path pnpm add n-root-path Usage import rootPath from 'n-root-path' console.log(rootPath)