Skip to content

jondlm/project-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Base DEPRECATED

There are situations where this module won't work. Since NPM now flattens your dependency tree (usually a good thing) the assumption this module was built on no longer holds true. I suggest the wrapper method instead, it's as easy as requiring a module.

A very simple, module to solve the require('../../../../something.js') problem. It relies on the fact that npm installs packages to node_modules/.

Don't use v1.0.1, it's broken.

Usage

var r = require('project-base');
var myModule = require(r + 'lib/myModule.js');

About

A simple way to get the absolute root path for your current project. Useful for local requires.

Resources

Stars

Watchers

Forks

Packages

No packages published