rootpath icon indicating copy to clipboard operation
rootpath copied to clipboard

Little helper to make node.js require relative to your project root

Results 5 rootpath issues
Sort by recently updated
recently updated
newest added

I wondering how to import this as an es6 library ?

Attempting to use this library with yarn workspaces seems to fail (since the paths resolve to the root yarn package instead of the workspace). Thus it would be nice to...

This library is very handy but breaks code completion functionality in vscode and possibly in other editors too. This is a huge drawback for using the library. Do you have...

I'm fairly certain that newer versions of npm break the assumption that this module makes. Now that `node_modules` can be flattened by npm, you can't rely on the "go down...

Set up filePath parameter to let users specify a subfolder (relative to project root) within the project as the new project root. Kept backwards compatibility with previous use of filePath...