UNPKG
above
Version:
latest (1.0.0)
1.0.0
0.0.2
0.0.1
Above is a simple pre function hook written in NodeJS
github.com/active9/above
active9/above
above
/
examples
/
simple.js
12 lines
(9 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
above =
require
(
'../lib/above.js'
);
function
testFunction
(
) {
console
.
log
(
'I am testFunction'
); } testFunction =
above
(testFunction,
function
(
func
) {
console
.
log
(
'This was called before testFunction'
);
func
(); });
testFunction
();