{"name":"waterline-criteria","version":"0.10.1","description":"Utility library for use in Sails adapters where you need to filter a list of output using a criteria object","main":"index.js","scripts":{"test":"mocha","prepublish":"npm prune --production"},"repository":{"type":"git","url":"git@github.com:balderdashy/waterline-criteria.git"},"keywords":["waterline","utility"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"lodash":"~2.4.1","include-all":"~0.1.2"},"testDependencies":{"mocha":"~1.12.0","bower":"~0.10.0","grunt":"~0.4.1","grunt-text-replace":"~0.3.6","grunt-contrib-clean":"~0.5.0","grunt-contrib-uglify":"~0.2.2"},"bugs":{"url":"https://github.com/balderdashy/waterline-criteria/issues"},"_id":"waterline-criteria@0.10.1","dist":{"shasum":"1655ce027b7c6104eead026fd0c0fd1d0ec6dbc7","tarball":"http://registry-npm.ywwl.com/waterline-criteria/download/waterline-criteria-0.10.1.tgz","integrity":"sha512-Sk3/20FwHhIgp7ky5A0It1+CF8D+e679k0es39UOS6RfyjfNA0Ww4TxE7nEzlxxfVOXFJfjUOFlKWvwgrIB05g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDs4Op9YP0n2lUjbPW7+pNKNxpkLQXo/0yiXBFBPJaKYQIhAIB/z2XspeSI5DpjR9P2vTtntVwNyh0/MNq6zsdgEXkc"}],"size":6076,"noattachment":false,"key":"/waterline-criteria/-/waterline-criteria-0.10.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"particlebanana","email":"particlebanana@gmail.com"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"particlebanana","email":"particlebanana@gmail.com"}],"directories":{},"readme":"# waterline-criteria\n\nUtilities for working with Waterline criterias, especially for applying them to in-memory datasets.\n\n> This module was designed for adapters which communicate with key/value stores such as [`sails-disk`](https://github.com/balderdashy/sails-disk), [sails-memory](https://github.com/balderdashy/sails-memory), and [sails-redis](https://github.com/balderdashy/sails-redis) (i.e. they already implement the `semantic` interface, but need to implement the `queryable` interface).\n\n\n## Installation\n\n```sh\n$ npm install waterline-criteria --save\n```\n\n## Usage\n\n```js\nvar wlFilter = require('waterline-criteria');\n\nvar SOME_DATASET = [\n  {\n    id: 1,\n    name: 'Lyra'\n  },\n  {\n    id: 2,\n    name 'larry'\n  }\n];\n\nvar results = wlFilter(SOME_DATASET, {\n  where: {\n    name: { contains: 'lyr' }\n  }\n}).results;\n\n// x ==> [{name: 'Lyra', id: 1}]\n```\n\n## Bugs &nbsp; [![NPM version](https://badge.fury.io/js/waterline-criteria.svg)](http://npmjs.com/package/waterline-criteria)\n\nTo report a bug, [click here](http://sailsjs.com/bugs).\n\n> This is a built-in module in the Sails framework and the `sails-disk` adapter.  It is installed automatically when you run `npm install sails`.\n\n#### Version notes\n\nThe master branch of this repository holds `waterline-criteria` used in Sails versions 0.10.0 and up.  If you're looking for the version for the v0.9.x releases of Sails, the source is [located here](https://github.com/balderdashy/waterline-criteria/releases/tag/v0.9.7).\n\n## Contributing &nbsp; [![Build Status](https://travis-ci.org/balderdashy/waterline-criteria.svg?branch=master)](https://travis-ci.org/balderdashy/waterline-criteria)\n\nPlease observe the guidelines and conventions laid out in the [Sails project contribution guide](http://sailsjs.com/contribute) when opening issues or submitting pull requests.\n\n[![NPM package info](https://nodei.co/npm/waterline-criteria.png?downloads=true)](http://npmjs.com/package/waterline-criteria)\n\n## License\n\nThe [Sails framework](http://sailsjs.com) is free and open-source under the [MIT License](http://sailsjs.com/license).\n","publish_time":1393535694907,"_cnpm_publish_time":1393535694907,"dist-tags":{"latest":"2.0.0"}}