{"name":"line","version":"0.1.7","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":"noop","directories":{"lib":"lib"},"dependencies":{"ender-events":"*"},"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.7","dist":{"shasum":"d36ea32ba07996cd162e123345fc43c62af10554","tarball":"http://registry-npm.ywwl.com/line/download/line-0.1.7.tgz","integrity":"sha512-c8u5GL6OOsfenw86bcKBXTezLRbKlSAyRMO/+RXb38cZrlSSejtbbjMSew0alG1EKTgBaMVE1CcH8FikfIqbPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgMtDFxjhOxN93qogNVgJKTte8YecYHkY5t46MlBYthAIhAP1bOIYmZayQ6GHrOWPZ706jHvCwVxS8bIFJh4cLGYy/"}],"size":6108,"noattachment":false,"key":"/line/-/line-0.1.7.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"amccollum","email":"amccollum+npm@gmail.com"},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}],"publish_time":1359678021995,"_cnpm_publish_time":1359678021995,"dist-tags":{"latest":"0.1.8"}}