0.3.0 • Published 9 years ago

usens v0.3.0

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

UseNS Build Status

Yet another module loader for Node.JS

To use this module you should initialize root directory of your application. E.g. usens.init(__dirname)

After initialize root directory you can get loader in any module using var use = usens.loader(module). Returned function will use module.require for loading modules from client module.

To load single module you should use following syntax: var Post = use('models/post').Post.

use() and use([]) returns null

To load more than one module you can use one or the following syntax: var routes = use('routes/index', 'routes/posts', 'routes/users') or var routes = use(['routes/index', 'routes/posts', 'routes/users'])

use('route/posts') returns single required module. use(['route/posts']) returns array.

0.3.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago