{"url":"http://github.com/amccollum/line","dist":{"shasum":"58f157377a00adab7bfef5dfb36f0519e576a2cb","tarball":"https://registry.npmjs.org/line/-/line-0.1.5.tgz","integrity":"sha512-gF8PVyjCEulF9wFrQJew2DNWajIRB/Gw99qG3/resu9mk3k6e3lD21TXUxj0eHoYAutSl1mT6TKYR6UOJAOejg==","signatures":[{"sig":"MEQCIES/2poF9DkoMSM9TOAtbR1BtniQw58V5aagkTMxAh3bAiBSjsMQXIHXyZOLNMlR2TxzBgmdqxic4+KIAy0nh6N3Dw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/line.js","name":"line","ender":"noop","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.62","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"}],"devDependencies":{"ender-vows":"*","coffee-script":"*"},"_id":"line@0.1.5","version":"0.1.5"}