{
  "_args": [
    [
      {
        "raw": "deffy@^2.2.2",
        "scope": null,
        "escapedName": "deffy",
        "name": "deffy",
        "rawSpec": "^2.2.2",
        "spec": ">=2.2.2 <3.0.0",
        "type": "range"
      },
      "/home/zkochan/src/pnpm/packages/pnpm/node_modules/bug-killer"
    ]
  ],
  "_from": "deffy@>=2.2.2 <3.0.0",
  "_id": "deffy@2.2.2",
  "_inCache": true,
  "_location": "/deffy",
  "_nodeVersion": "4.0.0",
  "_npmOperationalInternal": {
    "host": "packages-16-east.internal.npmjs.com",
    "tmp": "tmp/deffy-2.2.2.tgz_1461606855291_0.025558035355061293"
  },
  "_npmUser": {
    "name": "ionicabizau",
    "email": "bizauionica@gmail.com"
  },
  "_npmVersion": "2.14.2",
  "_phantomChildren": {},
  "_requested": {
    "raw": "deffy@^2.2.2",
    "scope": null,
    "escapedName": "deffy",
    "name": "deffy",
    "rawSpec": "^2.2.2",
    "spec": ">=2.2.2 <3.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/bug-killer",
    "/ul"
  ],
  "_resolved": "https://registry.npmjs.org/deffy/-/deffy-2.2.2.tgz",
  "_shasum": "088f40913cb47078653fa6f697c206e03471d523",
  "_shrinkwrap": null,
  "_spec": "deffy@^2.2.2",
  "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/bug-killer",
  "author": {
    "name": "Ionică Bizău",
    "email": "bizauionica@gmail.com",
    "url": "http://ionicabizau.net"
  },
  "blah": {
    "h_img": "http://i.imgur.com/k1hlQxA.png"
  },
  "bugs": {
    "url": "https://github.com/IonicaBizau/deffy.js/issues"
  },
  "dependencies": {
    "typpy": "^2.0.0"
  },
  "description": "Small and fast library to set default values.",
  "devDependencies": {},
  "directories": {
    "example": "example",
    "test": "test"
  },
  "dist": {
    "shasum": "088f40913cb47078653fa6f697c206e03471d523",
    "tarball": "https://registry.npmjs.org/deffy/-/deffy-2.2.2.tgz"
  },
  "files": [
    "bin/",
    "app/",
    "lib/",
    "dist/",
    "src/",
    "resources/",
    "menu/",
    "cli.js",
    "index.js"
  ],
  "gitHead": "9d877a28d84290b153066bd1ba92286f966f1da7",
  "homepage": "https://github.com/IonicaBizau/deffy.js",
  "keywords": [
    "default",
    "values",
    "deffy"
  ],
  "license": "MIT",
  "main": "lib/index.js",
  "maintainers": [
    {
      "name": "ionicabizau",
      "email": "bizauionica@gmail.com"
    }
  ],
  "name": "deffy",
  "optionalDependencies": {},
  "readme": "\n[![deffy](http://i.imgur.com/k1hlQxA.png)](#)\n\n# deffy [![PayPal](https://img.shields.io/badge/%24-paypal-f39c12.svg)][paypal-donations] [![Version](https://img.shields.io/npm/v/deffy.svg)](https://www.npmjs.com/package/deffy) [![Downloads](https://img.shields.io/npm/dt/deffy.svg)](https://www.npmjs.com/package/deffy) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)\n\n> Small and fast library to set default values.\n\n## :cloud: Installation\n\n```sh\n$ npm i --save deffy\n```\n\n\n## :clipboard: Example\n\n\n\n```js\n// Dependencies\nvar Deffy = require(\"deffy\");\n\nconsole.log(Deffy(undefined, \"Hello World\"));\n// => \"Hello World\"\n\nconsole.log(Deffy(\"Hello World\", 42));\n// => 42\n\nconsole.log(Deffy(\"Hello\", \"World\"));\n// => \"World\"\n\nconsole.log(Deffy(\"\", \"World\", true));\n// => \"World\"\n\nconsole.log(Deffy(\"\", \"World\"));\n// => \"\"\n\nconsole.log(Deffy(\"foo\", function (input) {\n    return input === \"foo\" ? \"bar\" : \"foo\";\n}));\n// => \"bar\"\n```\n\n## :memo: Documentation\n\n\n### `Deffy(input, def, options)`\nComputes a final value by providing the input and default values.\n\n#### Params\n- **Anything** `input`: The input value.\n- **Anything|Function** `def`: The default value or a function getting the input value as first argument.\n- **Object|Boolean** `options`: The `empty` value or an object containing the following fields:\n\n - `empty` (Boolean): Handles the input value as empty field (`input || default`). Default is `false`.\n\n#### Return\n- **Anything** The computed value.\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n## :dizzy: Where is this library used?\nIf you are using this library in one of your projects, add it in this list. :sparkles:\n\n\n - [`ascii-heart`](https://github.com/nuvipannu/ascii-heart#readme) (by Nuvi Pannu)—Create ASCII hearts using Node.js.\n - [`asciify-pixel`](https://github.com/IonicaBizau/asciify-pixel#readme)—Asciifies a pixel object.\n - [`blah`](https://github.com/IonicaBizau/blah)—A command line tool to optimize the repetitive actions.\n - [`bug-killer`](https://github.com/IonicaBizau/node-bug-killer)—Simple way to log messages in stdout or other stream.\n - [`cli-box`](https://github.com/IonicaBizau/node-cli-box)—A library to generate ASCII boxes via NodeJS\n - [`cli-gh-cal`](https://github.com/IonicaBizau/cli-gh-cal)—GitHub like calendar graphs in command line.\n - [`emoji-logger`](https://github.com/IonicaBizau/emoji-logger#readme)—Logging library based on flat colors and Emoji.\n - [`engine-builder`](https://github.com/IonicaBizau/engine-parser) (by jillix)—Engine composition parser.\n - [`engine-flow-types`](https://github.com/jillix/engine-flow-types#readme) (by jillix)—Low level library providing Engine flow types.\n - [`engine-parser`](https://github.com/IonicaBizau/engine-parser) (by jillix)—Engine composition parser.\n - [`engine-tools`](https://github.com/jillix/engine-tools) (by jillix)—Engine Tools library and CLI app.\n - [`enny`](https://github.com/IonicaBizau/enny) (by jillix)—Generate Engine compositions from human-readable inputs.\n - [`flow-api`](https://github.com/jillix/flow-api) (by jillix)—The flow api library and CLI app.\n - [`gh-notifier`](https://bitbucket.org/IonicaBizau/gh-notifier#readme)—Receive desktop notifications from your GitHub dashboard.\n - [`ghosty`](https://github.com/IonicaBizau/ghosty#readme)—A wrapper around PhantomJS, downloading the Phantom binary.\n - [`git-package-json`](https://github.com/IonicaBizau/git-package-json#readme)—Get the package.json contents from git repositories.\n - [`git-stats`](https://github.com/IonicaBizau/git-stats)—Local git statistics including GitHub-like contributions calendars.\n - [`gpm`](https://github.com/IonicaBizau/gpm)—npm + git = gpm - Install NPM packages and dependencies from git repositories.\n - [`love-you`](https://github.com/IonicaBizau/love-you#readme)—\"I love you\" in different languages.\n - [`one-by-one`](https://github.com/IonicaBizau/one-by-one)—Run async tasks one by one.\n - [`pixel-class`](https://github.com/IonicaBizau/pixel-class#readme)—A tiny class for pixel manipulation.\n - [`same-time`](https://github.com/IonicaBizau/same-time.js)—Call functions in parallel and store the results.\n - [`set-or-get`](https://github.com/IonicaBizau/set-or-get.js)—Sets or gets an object field value.\n - [`ssh-remote`](https://github.com/IonicaBizau/ssh-remote)—Automagically switch on the SSH remote url in a Git repository.\n - [`svg.connectable.js`](https://github.com/jillix/svg.connectable.js) (by jillix)—A JavaScript library for connecting SVG things.\n - [`tilda`](https://github.com/IonicaBizau/tilda)—Tiny module for building command line tools.\n - [`ul`](https://github.com/IonicaBizau/node-ul)—A minimalist utility library.\n - [`web-term`](https://github.com/IonicaBizau/web-term)—A full screen terminal in your browser.\n\n## :scroll: License\n\n[MIT][license] © [Ionică Bizău][website]\n\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW\n[donate-now]: http://i.imgur.com/6cMbHOC.png\n\n[license]: http://showalicense.com/?fullname=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica%40gmail.com%3E%20(http%3A%2F%2Fionicabizau.net)&year=2015#license-mit\n[website]: http://ionicabizau.net\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+ssh://git@github.com/IonicaBizau/deffy.js.git"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "version": "2.2.2"
}
