UNPKG
bhiv
Version:
latest (3.1.45)
3.1.45
3.1.44
3.1.40
3.1.39
3.1.38
3.1.37
3.1.36
3.1.35
3.1.34
3.1.33
3.1.32
3.1.31
3.1.30
3.1.29
3.1.28
3.1.27
3.1.26
3.1.25
3.1.24
3.1.23
3.1.22
3.1.21
3.1.20
3.1.19
3.1.18
3.1.16
3.1.15
3.1.14
Extended asynchronous execution controller with composer syntax
github.com/np42/bhiv
np42/bhiv
bhiv
/
tests
/
local-01.js
10 lines
(8 loc)
•
293 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
Bhiv
=
require
(
'..'
);
var
bhiv =
new
Bhiv
();
new
bhiv.
Bee
() .
store
(
'${toto}'
,
'some.where'
) .
pipe
(
function
(
flow, callback
) {
return
callback
(
null
, flow); },
'${some.where}'
) .
end
({
toto
:
42
},
function
(
err, value
) {
console
.
log
(
'expected (null, 42), got:'
, err, value); });