1.0.0 • Published 8 years ago

apptasks v1.0.0

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

AppTasks

AppTasks allows ypu to load and start functions before your application starts and after your application ends.

Install

$ npm install --save apptasks

Usage

const AppTasks = require('apptasks');

const apptasks = new AppTasks({
    preFolder: 'folder/for/start/functions',
    postFolder: 'folder/for/post/functions'
});

API

apptasks(options)

options

preFolder

Type: string Default: pre

Add functions that should be run before your application to this folder

postFolder

Type: string Default: post

Add functions that should be run when your application ends to this folder.

DEBUG

Type: boolean Default: false

Set this option to true to log configuration, pre/post functions and run sequence.

Pre and post function signature

The functions should have the signature, Use the first return parameter to return null or an error.

function moduleName(cb) {
    cb(null, 'Result');
}

module.exports = moduleName;

License

MIT © kokujin

1.0.0

8 years ago

0.5.0

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.0

8 years ago