"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/iferr/package.json" (8 Mar 2017, 2120 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {
    2   "_from": "iferr@>=0.1.5 <0.2.0",
    3   "_id": "iferr@0.1.5",
    4   "_location": "/iferr",
    5   "_npmUser": {
    6     "name": "nadav",
    7     "email": "npm@shesek.info"
    8   },
    9   "_npmVersion": "1.4.4",
   10   "_phantomChildren": {},
   11   "_requiredBy": [
   12     "/fs-write-stream-atomic",
   13     "/npm"
   14   ],
   15   "_resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz",
   16   "_shasum": "c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501",
   17   "_shrinkwrap": null,
   18   "author": {
   19     "name": "Nadav Ivgi"
   20   },
   21   "bugs": {
   22     "url": "https://github.com/shesek/iferr/issues"
   23   },
   24   "dependencies": {},
   25   "description": "Higher-order functions for easier error handling",
   26   "devDependencies": {
   27     "coffee-script": "^1.7.1",
   28     "mocha": "^1.18.2"
   29   },
   30   "directories": {},
   31   "dist": {
   32     "shasum": "c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501",
   33     "tarball": "http://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz"
   34   },
   35   "homepage": "https://github.com/shesek/iferr",
   36   "keywords": [
   37     "error",
   38     "errors"
   39   ],
   40   "license": "MIT",
   41   "main": "index.js",
   42   "maintainers": [
   43     {
   44       "name": "nadav",
   45       "email": "npm@shesek.info"
   46     }
   47   ],
   48   "name": "iferr",
   49   "optionalDependencies": {},
   50   "readme": "# iferr\n\nHigher-order functions for easier error handling.\n\n`if (err) return cb(err);` be gone!\n\n## Install\n```bash\nnpm install iferr\n```\n\n## Use\n\n### JavaScript example\n```js\nvar iferr = require('iferr');\n\nfunction get_friends_count(id, cb) {\n  User.load_user(id, iferr(cb, function(user) {\n    user.load_friends(iferr(cb, function(friends) {\n      cb(null, friends.length);\n    }));\n  }));\n}\n```\n\n### CoffeeScript example\n```coffee\niferr = require 'iferr'\n\nget_friends_count = (id, cb) ->\n  User.load_user id, iferr cb, (user) ->\n    user.load_friends iferr cb, (friends) ->\n      cb null, friends.length\n```\n\n(TODO: document tiferr, throwerr and printerr)\n\n## License\nMIT\n",
   51   "readmeFilename": "README.md",
   52   "repository": {
   53     "type": "git",
   54     "url": "git+https://github.com/shesek/iferr.git"
   55   },
   56   "scripts": {
   57     "prepublish": "coffee -c index.coffee",
   58     "test": "mocha"
   59   },
   60   "version": "0.1.5"
   61 }