Resolve file paths to actual module contents
npm install seebigs-resolveResolve a target string to a single filepath and get the contents of the file at that location
Follows Node spec: https://nodejs.org/api/modules.html
```
$ npm install seebigs-resolve
`js
var resolve = require('seebigs-resolve');
var fromFile = __filename;
resolve('/abs/module.js', fromFile);
resolve('../rel/module.js', fromFile);
resolve('npm_module', fromFile);
// returns { contents: '...', path: '/path/to/module.js' }
`
Modules can also be resolved from an optional array of paths
`js
var resolve = require('seebigs-resolve');
var fromFile = __filename;
var paths = [
'../one'
];
resolve('module.js', fromFile, paths);
`
Force resolve to use the browser field in package.json
`js
var resolve = require('seebigs-resolve');
var fromFile = __filename;
resolve.browser('module.js', fromFile);
``