{"name":"koalas","version":"0.0.2","description":"Koalas is a library for doing a coalesce in JavaScript","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/doowb/koalas.git"},"keywords":["isnull","koalas","koala","null","undefined"],"author":{"name":"Brian Woodward"},"license":"MIT","bugs":{"url":"https://github.com/doowb/koalas/issues"},"devDependencies":{"mocha":"~1.16.2","chai":"~1.8.1"},"_id":"koalas@0.0.2","dist":{"shasum":"c69a506f95489fd4a9838dd8447bbe6a56e4906e","tarball":"http://registry-npm.ywwl.com/koalas/download/koalas-0.0.2.tgz","integrity":"sha512-QboSn1B/tOZ+CdWRTp5z8OnextV6jDfdvMi33f9gpYfZMsWQFypoymM93p/oJSj5CderWfpOnsWrwOOtjZFQfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9wB/ri1ayWsMw6xZRwsRfo7a1sEOF6qNa7e7tQ16F1AiEAmYebj63PZWMXGyk3Cd1yG1+eqW29pxkHl9a5ugKuAl0="}],"size":2449,"noattachment":false,"key":"/koalas/-/koalas-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"}],"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":1388159379225,"_cnpm_publish_time":1388159379225,"dist-tags":{"latest":"1.0.2"}}