{"name":"line","version":"0.1.6","description":"Control flow like a boss","keywords":["ender","flow","control","async"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/line","repositories":[{"type":"git","url":"http://github.com/amccollum/line.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/line.js","ender":{"bridge":"noop","dependencies":"ender-events"},"directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender-vows":"*"},"readme":"line\n===\nLine is flow control designed to work with CoffeeScript.\n\nHere's an example:\n\n```CoffeeScript\nLine = require('line').Line\n\ndata2 = null\n\nl = new Line\n\terror: (err) -> console.log('Oh no! One of the callbacks had an error:', err)\n\t\t\n\t-> fs.readdir 'my_dir', @wait()\n    \n\t(files) ->\n\t\t# Callback results can be named, or observed\n\t    fs.readFile \"my_dir/#{files[0]}\", 'utf8', @wait('data1')\n\t    fs.readFile \"my_dir/#{files[1]}\", 'utf8', @wait (data) -> data2 = data\n\t    fs.stat \"my_dir/#{files[2]}\", @wait()\n\n\t# By default, the result of the last wait() call will be passed on\n\t(stats) ->\n\t    console.log('Contents of the first file:', @results.data1)\n\t    console.log('Contents of the second file:', data2)\n\t    console.log('Result of fs.stat for the third file:', stats)\n    \n    # If there is no wait() call, the callback will complete immediately\n\n# Blocks can also be added later\nl.add -> console.log('All the tasks completed without errors.')\n```\n","readmeFilename":"README.md","_id":"line@0.1.6","dist":{"shasum":"ac67229d5d07aad6689f46c2ba422bfb4aac01fb","tarball":"http://registry-npm.ywwl.com/line/download/line-0.1.6.tgz","integrity":"sha512-c2aPRMSfs5CTza2GTppceYQoy8sc4AJpUjj8BPGikYkl66TAskoyXJLoyIm/I5jedLRcqVH7izKoWgghnx+JTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeZ2H4YGqa6KzAeJnD0/YAXSBfI9YsUHinHP31RmVk0wIhANypbD4U/auDsQaqfnH2gAW1W+XXzMW/BvCarvbA+1Kt"}],"size":6123,"noattachment":false,"key":"/line/-/line-0.1.6.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"amccollum","email":"amccollum+npm@gmail.com"},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}],"publish_time":1359677775455,"_cnpm_publish_time":1359677775455,"dist-tags":{"latest":"0.1.8"}}