Categories for Javascript

npm install cats
9 downloads in the last month


(This is an alpha product.)

Categories for Javascript adapted from Haskell's Control modules.

var main =
  (print("3")) (pause)
  (print("2")) (pause)
  (print("1")) (pause)
  (print("Blast off!"))
  // The closing pair of parentheses is required.

Try it out:

More Examples

Drag and drop.

var dragdrop = function(x) {
  return click(x).then(drag);

BSD licensed.

npm loves you