Anonymous View
Skip to content

recipher/initializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@recipher/initializer

Initializer helper.

Usage

Locate your initializers in the lib/initializers folder. Given an initializer at lib/initializers/routes.js, then to call the initializer:

var initialize = require('@recipher/initializer');

initialize('routes');

The initializer should export a function:

module.exports = function(apps, options) {
  // Do something with apps and options
};

To pass arguments to the initializer:

initialize('routes', apps, options);

About

Initializer helper

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors