package
require.resolve without throwing
npm install safe-resolveGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
require.resolve without throwing
$ npm install --save safe-resolve$ npm testconst safe = require('safe-resolve')
// index.js exists
safe('./index.js')
// returns the resolved filepath
// biscuits.js does not exist
safe('./biscuits.js')
// => nullEvan Lucas
MIT (See LICENSE for more info)