{"author":{"name":"Andreas Lind Petersen","email":"andreas@one.com"},"name":"passerror","description":"Simple helper for handling error and success with two different callbacks","version":"0.0.1","repository":{"url":"git://github.com/papandreou/passerror"},"main":"lib/index.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"papandreou","email":"andreas@one.com"},"_id":"passerror@0.0.1","_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.15-pre","_defaultsLoaded":true,"dist":{"shasum":"7cce5f394ab7a67f3a9d77e79f6a50a356e048b0","tarball":"http://registry-npm.ywwl.com/passerror/download/passerror-0.0.1.tgz","integrity":"sha512-fq8T/YCS8b1EwvhZPJQD2SURSyvVs2nPXk8EfAikcSeGhg+gL5524bcW9VCuz3hlQhXnPZWr02+3GbtTIFzf9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjHctAB+5AfblJazHhPlrGJTiaZVwofeaWhdP9uj9Q1AiBSTJXgmTXL8e/9BQKiYqCZSwsFlsyA5fH9pxJ/EgORzw=="}],"size":1654,"noattachment":false,"key":"/passerror/-/passerror-0.0.1.tgz"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"directories":{},"readme":"passError\n=========\n\nHandle success and failure with two different callbacks. Lets you get\nrid of most `if (err) return cb(err);` constructs.\n\n\nExample\n-------\n\nSend errors reported by `fs.readFile` straight to `cb`:\n\n```javascript\nvar passError = require('passerror'),\n    fs = require('fs');\n\nfunction getLines(fileName, cb) {\n    fs.readFile(fileName, 'utf-8', passError(cb, function (contents) {\n        cb(null, contents.split(/\\r?\\n|\\n?\\r/));\n    }));\n}\n```\n\n\nLicense\n-------\n\nLicensed under a standard 3-clause BSD license -- see the\n`LICENSE`-file for details.\n","publish_time":1340917514035,"_cnpm_publish_time":1340917514035,"dist-tags":{"latest":"1.1.1"}}