{"url":"http://github.com/amccollum/line","dist":{"shasum":"eb756eafdc97345f1782abfa506788dc4da54c7c","tarball":"https://registry.npmjs.org/line/-/line-0.1.8.tgz","integrity":"sha512-HsI7pqrr3PcgXJvciVgLCdET8YJ0zkHr19g9s0s04yiDheXBs6ceIl2bR5uJI9JHLEyxxEAPOpRTyLNCiutfXg==","signatures":[{"sig":"MEUCIQDmHsevhGKqFaD0ZqY8iy7PL3YFFRBf78GAE3OIbfp8FwIgYPoTGLKU8ZksgxeH4+Uv+rgx59HCaxqY7DDQQBYz8YY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/line.js","name":"line","_from":".","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.2.11","description":"Control flow like a boss","directories":{"lib":"lib"},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}],"dependencies":{"ender-events":"*"},"repositories":[{"url":"http://github.com/amccollum/line.git","type":"git"}],"readmeFilename":"README.md","devDependencies":{"ender-vows":"*","coffee-script":"*"},"_id":"line@0.1.8","version":"0.1.8"}