UNPKG
on-exit
Version:
latest (1.0.1)
1.0.1
1.0.0
Register tasks to perform when the process exits.
github.com/Prestaul/on-exit
on-exit
/
tests
/
child-simple.js
12 lines
(9 loc)
•
151 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
onExit =
require
(
'../'
);
function
send
(
val
) {
return
function
(
) { process.
send
(val); }; }
onExit
(
send
(
1
));
onExit
(
send
(
2
));
onExit
(
send
(
3
));