{"url":"http://github.com/amccollum/line","dist":{"shasum":"ac67229d5d07aad6689f46c2ba422bfb4aac01fb","tarball":"https://registry.npmjs.org/line/-/line-0.1.6.tgz","integrity":"sha512-c2aPRMSfs5CTza2GTppceYQoy8sc4AJpUjj8BPGikYkl66TAskoyXJLoyIm/I5jedLRcqVH7izKoWgghnx+JTw==","signatures":[{"sig":"MEYCIQCeZ2H4YGqa6KzAeJnD0/YAXSBfI9YsUHinHP31RmVk0wIhANypbD4U/auDsQaqfnH2gAW1W+XXzMW/BvCarvbA+1Kt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/line.js","name":"line","ender":{"bridge":"noop","dependencies":"ender-events"},"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"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","_npmUser":{"name":"amccollum","email":"amccollum+npm@gmail.com"},"keywords":["ender","flow","control","async"],"licenses":[{"url":"http://opensource.org/licenses/mit-license.php","type":"MIT"}],"_npmVersion":"1.1.65","description":"Control flow like a boss","directories":{"lib":"lib"},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}],"repositories":[{"url":"http://github.com/amccollum/line.git","type":"git"}],"readmeFilename":"README.md","devDependencies":{"ender-vows":"*","coffee-script":"*"},"_id":"line@0.1.6","version":"0.1.6"}