DEV Community

Sherin
Sherin

Posted on • Updated on

Check whether a dependency is installed in your Node.js app

You can use require.resolve() to check whether a dependency is available in your Node.js app without loading it. You can read more about it here

Top comments (0)