Package Exports
- try-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 (try-resolve) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
try-resolve
Installation
$ npm install try-resolveUsage
var resolve = require("try-resolve");resolve(filename, [require])
filenameis a filename to be resolved.requireis an optional instance of therequirefunction from any file.
Returns null if the file can't be required, otherwise it returns an absolute filename string.
Example
if (require("try-resolve")("/home/sebastian/file")) {
// this file can be required
} else {
// it can't
}resolve.relative(filename)
Resolve a filename relative to the cwd.