is-resolvable
A Node.js module to check if a given module ID is resolvable with require()
Installation
API
isResolvable(moduleId [, options])
moduleId: string
(module ID)
options: Object
(require.resolve
options)
Return: boolean
It returns true
if require()
can load a file form a given module ID, otherwise false
.
The second argument accepts an options object for require.resolve()
.
License
ISC License © 2018 Shinnosuke Watanabe
Last updated