1.0.0 • Published 9 years ago

getmodule v1.0.0

Weekly downloads
37
License
MIT
Repository
github
Last release
9 years ago

Get Module

Include local NodeJS modules relative to your root path

NPM version Build Status Coverage Status Code Climate

NPM

Installation

npm i --save getmodule

Usage

Add getmodule on top of your app.js (or main file of your app):

require( 'getmodule' );

Now, you can call any module based on root path of your application.

If your module is on app/modules/mymodule.js, but you're calling it on the file app/controllers/controller.js; in tradicional mode, you needed to do:

var mymodule = require( '../modules/mymodule' );

But with getmodule, you just need type this:

var mymodule = getmodule( 'app/modules/mymodule' );

Contributing

Check CONTRIBUTING.md

License

MIT License © Fernando Daciuk

1.0.0

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago