node-resolve-cwd

Resolve the path of a module from current directory

Description

This module can be used to determine the path of a module starting from the current working directory.

For an input of moduleId to resolveCwd(moduleId), it gives an error when the module can't be found, which is similar to how require() works.

If moduleId is called as resolveCwd.silent(moduleId) then it returns null instead of giving an error when the module can't be found.

Node.js is an event-based server-side JavaScript engine.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/sindresorhus/resolve-cwd


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install node-resolve-cwd