safe-resolve require.resolve without throwing Install $ npm install --save safe-resolve Test $ npm test Usage const safe = require('safe-resolve') // index.js existssafe('./index.js')// returns the resolved filepath // biscuits.js does not existsafe('./biscuits.js')// => null Author Evan Lucas License MIT (See LICENSE for more info)