{
  "_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/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/bug-killer"
    ]
  ],
  "_from": "deffy@^2.2.2",
  "_hasShrinkwrap": false,
  "_id": "deffy@2.2.3",
  "_location": "/deffy",
  "_nodeVersion": "10.15.0",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/deffy_2.2.3_1546529193962_0.7361493118088702"
  },
  "_npmUser": {
    "name": "ionicabizau",
    "email": "bizauionica@gmail.com"
  },
  "_npmVersion": "6.4.1",
  "_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.3.tgz",
  "_shasum": "16671c969a8fc447c76dd6bb0d265dd2d1b9c361",
  "_shrinkwrap": null,
  "_spec": "deffy@^2.2.2",
  "_where": "/home/zoltan/src/pnpm/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": {
    "integrity": "sha512-c5JD8Z6V1aBWVzn1+aELL97R1pHCwEjXeU3hZXdigkZkxb9vhgFP162kAxGXl992TtAg0btwQyx7d54CqcQaXQ==",
    "shasum": "16671c969a8fc447c76dd6bb0d265dd2d1b9c361",
    "tarball": "https://registry.npmjs.org/deffy/-/deffy-2.2.3.tgz",
    "fileCount": 4,
    "unpackedSize": 12404,
    "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLimqCRA9TVsSAnZWagAA+MMQAJl1ZfoYbatY9ru8jApy\nfhIUTmCCx84mIAsTSC5P/OXLdu64O95IZDHqEj/HNJhi0aMPdgyqwRVWISF0\nfs1gBfVKo7TUGwRnjOxV8x7BxdIIwQdXdEL/TYFRknIw+Q30tAgzhD+12ITk\ntczQIl59t9RKFqdjq+R6/9PtdI29dRKU7DqeEBuPL5vR5LZMQ6QFlbXW40wD\nt5GxGqSbsng6NST5EUEjaaBQeTPwrn2HdpKlkLhkUDi09bq58cqL32Y+GRQU\n4HR67SsYMvqFJXjj+oIcX4WL0p6RM9k5LarYjipY8CbYElXjP70zDOB/nO48\nS9v3cJOJG3PTnnCKDAtSpbPG/+/IjHPIVBnuRjrjP3wjR1YhiDnlFBqK+vtN\nxZgqb9gBNw+oGJW+5pq686+27P6zQvRKgaAhhwv+Feep1f+rBaD/gJcg79m9\nVDXa7kQEIYj2I+O8Z5/50WIW1qqsPwlAtUdeXunsR3biiefRGkUcUFWIAuh9\nspR0VYRJIdWSm0XgokePAr8L//NW+EnmsrV9DhbGFF04pmB3RogNMgcX3FoB\nl8GekA9bm8/tXwils3oc9pMdNKZHvo73guWzB0jdDMZu/DnUKIfaGqeVspLQ\neg+//07wqWDNKBRpS1eoaIHcSh484aCAt4OAmbyEM/9THKPnLoQ5OFIdpD4R\nbEDu\r\n=9E4l\r\n-----END PGP SIGNATURE-----\r\n"
  },
  "files": [
    "bin/",
    "app/",
    "lib/",
    "dist/",
    "src/",
    "resources/",
    "menu/",
    "cli.js",
    "index.js"
  ],
  "gitHead": "979c50f40c07d00e6456ef2568344723d7b39042",
  "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": "<!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->\n\n\n[![deffy](http://i.imgur.com/k1hlQxA.png)](#)\n\n# deffy\n\n [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![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<a href=\"https://www.buymeacoffee.com/H96WwChMy\" target=\"_blank\"><img src=\"https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png\" alt=\"Buy Me A Coffee\"></a>\n\n> Small and fast library to set default values.\n\n## :cloud: Installation\n\n```sh\n# Using npm\nnpm install --save deffy\n\n# Using yarn\nyarn add 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\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n\n 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:\n\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\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\n## :sparkling_heart: Support my projects\n\nI open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,\nthis takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n\n - Starring and sharing the projects you like :rocket:\n - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:\n - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).\n - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`\n\n    ![](https://i.imgur.com/z6OQI95.png)\n\n\nThanks! :heart:\n\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 - [`bindy`](https://github.com/IonicaBizau/bindy#readme)—Create array of functions bound to input arrays.\n - [`blah`](https://github.com/IonicaBizau/blah)—A command line tool to optimize the repetitive actions.\n - [`bloggify-contact-form`](https://github.com/Bloggify/contact-form)—The official contact form plugin for Bloggify\n - [`bloggify-paths`](https://github.com/IonicaBizau/bloggify-paths#readme)—Helper library for maintaining the Bloggify paths in one place.\n - [`bloggify-shop`](https://github.com/IonicaBizau/bloggify-shop#readme)—eCommerce plugin for Bloggify.\n - [`bloggify-template-renderer`](https://github.com/Bloggify/template-renderer#readme) (by Bloggify)—The default template renderer for Bloggify.\n - [`bloggify-theme-renderer`](https://github.com/Bloggify/theme-renderer#readme) (by Bloggify)—The default theme renderer for Bloggify.\n - [`bloggify-ws`](https://github.com/Bloggify/bloggify-ws#readme) (by Bloggify)—Websockets for Bloggify 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 - [`cute-logger`](https://github.com/IonicaBizau/cute-logger)—Simple way to log messages in stdout or other stream.\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 - [`obj-def`](https://github.com/IonicaBizau/obj-def#readme)—Easily set default fields in objects.\n - [`parrot-bot`](https://github.com/IonicaBizau/parrot-bot#readme)—A parrot-like bot you can talk with.\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 - [`transformer`](https://github.com/IonicaBizau/transformer#readme)—Transform data using synchronous and asynchronous functions.\n - [`ul`](https://github.com/IonicaBizau/node-ul)—A minimalist utility library.\n - [`value-breakpoints`](https://github.com/IonicaBizau/value-breakpoints#readme)—Run specific stuff when value reaches a specific range.\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\n[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg\n[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg\n[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg\n[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg\n\n[patreon]: https://www.patreon.com/ionicabizau\n[amazon]: http://amzn.eu/hRo9sIZ\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW\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.3"
}
