above

1.0.0 • Public • Published

Above

Simple Javascript Function Hooking

Above is a simple pre function hook written in NodeJS.

INSTALLING

Using Git:

git clone https://github.com/active9/above
cd above*
npm install

Using NPM:

npm install above

MODULE

Above may run included as a module in your projects.

var above = require('above');
 
function testFunction() {
    console.log('I am testFunction');
}
 
testFunction = above(testFunction, function(func) {
    console.log('This was called before testFunction');
    func();
});
 
testFunction();
 

EXAMPLES

More examples in the examples folder on the github repo.

~Enjoy!

CONTRIB

Above is open-source via the MIT license we encourage Forking.

LICENSE

MIT

Readme

Keywords

Package Sidebar

Install

npm i above

Weekly Downloads

6

Version

1.0.0

License

MIT

Last publish

Collaborators

  • active9