0.0.2 • Published 8 years ago

ns-autoloader v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

ns-autoloader

The autoloader for javascript ( nodejs )

Outline

installation

You can install ns-autoloader with following command:

npm install ns-autoloader

Usage

At the entry point, create ns-autoloader module and register apps or node modules. After the resitering, you can use registered apps or modules through the global object.

const autoload = require('ns-autoloader')

autoload.registerApps(__dirname + '/app', 'yourApp')
autoload.registerModules(__dirname + '/node_modules', 'mod')

const Rain = yourApp.weather.Rain
obj = new Rain()