bredele / mood

:speak_no_evil: Give some mood to your code with a finite state machine
76 stars 1 forks source link

mood inception #6

Open bredele opened 7 years ago

bredele commented 7 years ago
var first = mood('hello', {
  'hello': ['foo', cb, 'world']
})

var second = mood('init', {
  'init': [first('world'), cb, 'end']
})
bredele commented 7 years ago

it won't probably look like it but basically we need to know when a state change. Should we do that through the internal event emitter?