0.0.22 • Published 9 years ago

node-root v0.0.22

Weekly downloads
3
License
MIT
Repository
-
Last release
9 years ago

Node Root

Node Root helps you get away from dot hell like require('../../../lib/')

Usage

Simply install via npm install node-root -S

If you have a project tree like this:

/your/project/home
├─library
│   └─components
│       └─header.jsx
└─node_modules
    └─node-root

you can easily locate that header.jsx

import root from 'node-root'

import header from root('library/components/header.jsx')

The directory where you install node-root will be recognized as project's root, eg: node_modules/other is the root for node_modules/other/node_modules/node-root.

License

MIT.

0.0.22

9 years ago

0.0.21

9 years ago

0.0.2

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.1

9 years ago