line
Control flow like a boss
Last updated 15 years ago by amccollum .
MIT · Original npm · Tarball · package.json
$ npm install line 
SYNC missed versions from official npm registry.

line

Line is designed to work with CoffeeScript.

Here's an example:

    line ->
        taskWithCallback line.wait()
        
    line (firstTaskResult) ->
        anotherTask firstTaskResult, line.wait()
    
    line ->
        finalTask line.wait()
        
    line.catch (err) ->
        console.log('Oh no! One of the tasks had an error!')
        throw err 

    line.run ->
        console.log('All three tasks should be completed')
        

Current Tags

  • 0.1.8                                ...           latest (14 years ago)

12 Versions

  • 0.1.8                                ...           14 years ago
  • 0.1.7                                ...           14 years ago
  • 0.1.6                                ...           14 years ago
  • 0.1.5                                ...           14 years ago
  • 0.1.4                                ...           14 years ago
  • 0.1.3                                ...           14 years ago
  • 0.1.2                                ...           14 years ago
  • 0.1.1                                ...           15 years ago
  • 0.1.0                                ...           15 years ago
  • 0.0.3                                ...           15 years ago
  • 0.0.2                                ...           15 years ago
  • 0.0.1                                ...           15 years ago
Maintainers (1)
Downloads
Total 22
Today 0
This Week 0
This Month 13
Last Day 0
Last Week 0
Last Month 9
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE