{"_id":"passerror","_rev":"480433","name":"passerror","description":"Simple helper for handling error and success with two different callbacks","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"time":{"modified":"2021-08-05T09:34:08.000Z","created":"2012-06-28T21:05:14.035Z","1.1.1":"2015-10-30T21:27:15.940Z","1.1.0":"2014-10-02T10:11:02.693Z","1.0.1":"2014-02-18T12:30:02.659Z","1.0.0":"2013-10-30T09:30:59.562Z","0.0.2":"2013-03-07T14:11:22.411Z","0.0.1":"2012-06-28T21:05:14.035Z"},"users":{},"author":{"name":"Andreas Lind","email":"andreas@one.com"},"repository":{"url":"git://github.com/papandreou/passerror.git"},"versions":{"1.1.1":{"author":{"name":"Andreas Lind","email":"andreas@one.com"},"name":"passerror","description":"Simple helper for handling error and success with two different callbacks","version":"1.1.1","license":"BSD-3-Clause","repository":{"url":"git://github.com/papandreou/passerror.git"},"main":"lib/passError.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"2.3.3","sinon":"1.17.2","unexpected":"10.0.2","unexpected-sinon":"8.0.0"},"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"91f41d16d955e1963c30e536f75d09c942747f4e","bugs":{"url":"https://github.com/papandreou/passerror/issues"},"homepage":"https://github.com/papandreou/passerror#readme","_id":"passerror@1.1.1","_shasum":"a25b88dbdd910a29603aec7dcb96e9a7a97687b4","_from":".","_npmVersion":"2.14.8","_nodeVersion":"0.10.40","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"dist":{"shasum":"a25b88dbdd910a29603aec7dcb96e9a7a97687b4","size":2542,"noattachment":false,"key":"/passerror/-/passerror-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/passerror/download/passerror-1.1.1.tgz"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"directories":{},"publish_time":1446240435940,"_cnpm_publish_time":1446240435940,"_hasShrinkwrap":false},"1.1.0":{"author":{"name":"Andreas Lind Petersen","email":"andreas@one.com"},"name":"passerror","description":"Simple helper for handling error and success with two different callbacks","version":"1.1.0","repository":{"url":"git://github.com/papandreou/passerror"},"main":"lib/passError.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.13.0","sinon":"1.7.3","unexpected":"1.0.1","unexpected-sinon":"0.1.0"},"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"858f669795bb9a23d0c86be0f92d4082f7e66a47","bugs":{"url":"https://github.com/papandreou/passerror/issues"},"homepage":"https://github.com/papandreou/passerror","_id":"passerror@1.1.0","_shasum":"d72a29e30bc48a682b59d79b19c99c8da52307da","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"dist":{"shasum":"d72a29e30bc48a682b59d79b19c99c8da52307da","size":2417,"noattachment":false,"key":"/passerror/-/passerror-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/passerror/download/passerror-1.1.0.tgz"},"directories":{},"publish_time":1412244662693,"_cnpm_publish_time":1412244662693,"_hasShrinkwrap":false},"1.0.1":{"author":{"name":"Andreas Lind Petersen","email":"andreas@one.com"},"name":"passerror","description":"Simple helper for handling error and success with two different callbacks","version":"1.0.1","repository":{"url":"git://github.com/papandreou/passerror"},"main":"lib/passError.js","dependencies":{},"devDependencies":{"mocha":"1.13.0","sinon":"1.7.3","unexpected":"1.0.1","unexpected-sinon":"0.1.0"},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/papandreou/passerror/issues"},"_id":"passerror@1.0.1","dist":{"shasum":"28b11e4792a449dfd53f1da87efb4a1ea3879573","size":2360,"noattachment":false,"key":"/passerror/-/passerror-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/passerror/download/passerror-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"directories":{},"publish_time":1392726602659,"_cnpm_publish_time":1392726602659,"_hasShrinkwrap":false},"1.0.0":{"author":{"name":"Andreas Lind Petersen","email":"andreas@one.com"},"name":"passerror","description":"Simple helper for handling error and success with two different callbacks","version":"1.0.0","repository":{"url":"git://github.com/papandreou/passerror"},"main":"lib/passError.js","dependencies":{},"devDependencies":{"mocha":"1.13.0","sinon":"1.7.3","unexpected":"1.0.1","unexpected-sinon":"0.1.0"},"optionalDependencies":{},"engines":{"node":"*"},"readmeFilename":"README.md","_id":"passerror@1.0.0","dist":{"shasum":"1d6c4598677315ce5ab48be791260ff1594d3b15","size":2349,"noattachment":false,"key":"/passerror/-/passerror-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/passerror/download/passerror-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"directories":{},"publish_time":1383125459562,"_cnpm_publish_time":1383125459562,"_hasShrinkwrap":false},"0.0.2":{"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.2","repository":{"url":"git://github.com/papandreou/passerror"},"main":"lib/passError.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"readmeFilename":"README.md","_id":"passerror@0.0.2","dist":{"shasum":"c43090627b78d39ece96dbc7541f73f73efd9f4a","size":1744,"noattachment":false,"key":"/passerror/-/passerror-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/passerror/download/passerror-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"directories":{},"publish_time":1362665482411,"_cnpm_publish_time":1362665482411,"_hasShrinkwrap":false},"0.0.1":{"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","size":1654,"noattachment":false,"key":"/passerror/-/passerror-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/passerror/download/passerror-0.0.1.tgz"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"directories":{},"publish_time":1340917514035,"_cnpm_publish_time":1340917514035,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/papandreou/passerror#readme","bugs":{"url":"https://github.com/papandreou/passerror/issues"},"license":"BSD-3-Clause"}