Recursive Loader
Load modules recursive and save them in an object.
Getting Started
Install the module with: npm install recursive-loader
var loader = modules = loader; modules;// ORmodulesworld;
Documentation
Configuration
priority
- Type:
String
, - Default:
directory
Specifies the priority you want to use. For example, file
.
formatFilename
- Type:
Function
, - Default: Return camlized filename
formatDirname
- Type:
Function
, - Default: Return camlized dirname
Usage examples
Use file
as priority for loading modules.
var loader = ; loaderpriority = 'file'; // load and use modules
Use custom formatter for file or dirname.
var loader = ; loader { return filename;}; loader { return dirname;}; // load and use modules
License
Copyright (c) 2014 Florian Goße. Licensed under the MIT license.