Package Exports
- inside
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 (inside) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-self
require() relative to the path inside your module.
Installation
npm install --save inside
Usage:
var User = require('inside')('lib/models/user');
How does it work?
The first time node-self is called, it detects which file is calling it. It then traverses up the directory tree to find the first package.json
. Then all calls to node-self
will simply call require()
relative to that directory.