nbloc

0.0.3 • Public • Published

To flow on, to perpetually wander, to pass through states of existence.

{ Cont , Proc , runProc } = require "nbl"

print = (x) -> -> console.log x
pause = Cont (_, r) -> setTimeout r, 1000

countDown = Proc( print 3 ).then( pause ).
            then( print 2 ).then( pause ).
            then( print 1 ).then( pause ).
            then( print "Lift off!" )

runProc countDown, ->

Install

It's not necessary to install nbl to use it in a web browser, just link to it with a script tag.

<!doctype html>
<html>
  <head>
    <script src="//nbl-cdn.appspot.com/nbl.min.js"></script>

To use it as a Node module:

$ npm install nbloc

Contribute

$ git clone git://github.com/nbl.git
$ cd nbloc
$ npm install --dev
$ make dist

Readme

Keywords

Package Sidebar

Install

npm i nbloc

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

44.9 kB

Total Files

30

Last publish

Collaborators

  • locnguyenbao