{"name":"koalas","version":"0.0.6","description":"Koalas is a library for doing a coalesce in JavaScript","main":"index.js","scripts":{"test":"grunt test"},"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":{"chai":"~1.8.1","grunt":"~0.4.2","mocha":"~1.16.2","grunt-mocha-test":"~0.8.1","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.0","grunt-verb":"0.0.5"},"homepage":"https://github.com/doowb/koalas","_id":"koalas@0.0.6","dist":{"shasum":"93d69d607504ab7722f8ac43345ea4bc488da119","tarball":"http://registry-npm.ywwl.com/koalas/download/koalas-0.0.6.tgz","integrity":"sha512-aJKRSlXb0HvzCQ7fi0no+1WzFOT3GMjy9wlbczdtrh/1kM5JYDB5T5FotvGp3Jx3jrKxm3YqCDqDVsR2J4G4wg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqLJNpMk0KrKLZWAGr3b/XOPXI28XBRaHvYDEIIXKs5QIgdwiJKLeZVgEAfI2t0YWRhCp6j3RVNDGN1syfb7oE1Fc="}],"size":4702,"noattachment":false,"key":"/koalas/-/koalas-0.0.6.tgz"},"_from":".","_npmVersion":"1.3.24","_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":1395888646785,"_cnpm_publish_time":1395888646785,"dist-tags":{"latest":"1.0.2"}}