Resolve the path of a module like require.resolve()
but from the current working directory
Import a module like with require()
but from the current working directory
Resolve the path of a package regardless of it having an entry point
sindresorhusover 1 year agoEasily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)
jonschlinkertover 2 years ago