This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

inside

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i inside

Weekly Downloads

104,370

Version

1.0.0

License

Public Domain

Last publish

Collaborators

  • aantthony