{"name":"koalas","version":"0.1.1","description":"Coalesce for JavaScript","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"bugs":{"url":"https://github.com/doowb/koalas/issues"},"repository":{"type":"git","url":"https://github.com/doowb/koalas.git"},"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/MIT"}],"main":"index.js","scripts":{"test":"mocha -R spec"},"keywords":["chainable","check","isnull","kind","koala","koalas","null","type","type-of","typeof","undefined","util","utility","utils","value"],"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"homepage":"https://github.com/doowb/koalas","engines":{"node":">=0.10.0"},"gitHead":"b452b9670da1c8c1367d65931596d312c5382e33","_id":"koalas@0.1.1","_shasum":"56d4abfa328de5e3a585a6c5f8bfa233f14e17b7","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"56d4abfa328de5e3a585a6c5f8bfa233f14e17b7","tarball":"http://registry-npm.ywwl.com/koalas/download/koalas-0.1.1.tgz","integrity":"sha512-f4V5icZ2H86mzbpPDDf92gndbEQo8Nsa2DIG5AvFf+vxEvxwOVg/gn+kZtSYYR3pJ3el15VkB1+3ovW3MFntmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2mmpAoieBEkK9wr9+sKAqJno0nj5fJ0eGK7Vg4z3iyAiEA3lh1RUFWh6/CkauZ+Uq7u/I4wJixq5XJWupu/Q393f8="}],"size":3892,"noattachment":false,"key":"/koalas/-/koalas-0.1.1.tgz"},"directories":{},"readme":"# koalas [![NPM version](https://img.shields.io/npm/v/koalas.svg?style=flat)](https://www.npmjs.com/package/koalas) [![NPM monthly downloads](https://img.shields.io/npm/dm/koalas.svg?style=flat)](https://npmjs.org/package/koalas)  [![NPM total downloads](https://img.shields.io/npm/dt/koalas.svg?style=flat)](https://npmjs.org/package/koalas) [![Linux Build Status](https://img.shields.io/travis/doowb/koalas.svg?style=flat&label=Travis)](https://travis-ci.org/doowb/koalas) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/koalas.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/doowb/koalas)\n\n> Coalesce for JavaScript. Returns the first value that is not undefined or null.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save koalas\n```\n\n## Usage\n\n```js\nvar koalas = require('koalas');\n```\n\n## API\n\n### [koalas](index.js#L27)\n\nCoalesce function to find the first valid value. A valid value is one that is not undefined, not null and not NaN (not a number). If no values are valid, then the last argument is returned.\n\n**Params**\n\n* `arguments` **{Mixed}**: Pass in any amount of arguments.\n* `returns` **{Mixed}**: First valid value.\n\n**Example**\n\n```js\nconsole.log(koalas(undefined, null, NaN, 'a', 'b'));\n//=> 'a'\n\nconsole.log(koalas(undefined, null, NaN, {a: 'b'}, 'b'));\n//=> {a: 'b'}\n\nconsole.log(koalas(undefined, null, NaN, ['a', 'b', 'c'], {a: 'b'}, 'b'));\n//=> ['a', 'b', 'c']\n\nconsole.log(koalas(undefined, NaN, null));\n//=> null\n```\n\n## About\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 39 | [doowb](https://github.com/doowb) |\n| 1 | [jonschlinkert](https://github.com/jonschlinkert) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Brian Woodward**\n\n* [github/doowb](https://github.com/doowb)\n* [twitter/doowb](https://twitter.com/doowb)\n\n### License\n\nCopyright © 2017, [Brian Woodward](https://github.com/doowb).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on April 18, 2017._","publish_time":1412095079712,"_cnpm_publish_time":1412095079712,"dist-tags":{"latest":"1.0.2"}}