Package Exports
- safe-resolve
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (safe-resolve) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
safe-resolve
require.resolve without throwing
Install
$ npm install --save safe-resolveTest
$ npm testUsage
const safe = require('safe-resolve')
// index.js exists
safe('./index.js')
// returns the resolved filepath
// biscuits.js does not exist
safe('./biscuits.js')
// => nullAuthor
Evan Lucas
License
MIT (See LICENSE for more info)