{"name":"waterline-criteria","version":"2.0.0","description":"Utility library for working with Waterline criterias.  Especially useful when building Sails adapters for key/value databases.","main":"index.js","scripts":{"test":"node ./node_modules/mocha/bin/mocha test --recursive","prepublish":"npm prune"},"repository":{"type":"git","url":"git+ssh://git@github.com/balderdashy/waterline-criteria.git"},"keywords":["waterline","criteria","sails","orm","utility"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"flaverr":"^1.0.0","lodash":"3.10.1"},"devDependencies":{"mocha":"3.0.2"},"gitHead":"f5944b292bd8ed7865c7357cafc4ede1cffbf7b8","bugs":{"url":"https://github.com/balderdashy/waterline-criteria/issues"},"homepage":"https://github.com/balderdashy/waterline-criteria#readme","_id":"waterline-criteria@2.0.0","_shasum":"b81464597c7468e25a6b2715329e09ff5b9cb907","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"b81464597c7468e25a6b2715329e09ff5b9cb907","tarball":"http://registry-npm.ywwl.com/waterline-criteria/download/waterline-criteria-2.0.0.tgz","integrity":"sha512-eJHWkz6eJ/JpeEK1WBL7rHJ/5Gzy4LqQw7ft0zAoMIHBHm9aZAsza2UrtFpzbkuhfCw23rD2GnqwsxxXyPJgvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvdWyL3ywAYgeEbuWU82dj0v/0ut25jR1kiREuStO/RwIgdZZ9isAbsYKpKgX0ANf8+1dkRBW3zqUeyomcvBYhASw="}],"size":13706,"noattachment":false,"key":"/waterline-criteria/-/waterline-criteria-2.0.0.tgz"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"sgress454","email":"sgress454@treeline.io"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/waterline-criteria-2.0.0.tgz_1477082158734_0.39356831810437143"},"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":1477082159147,"_cnpm_publish_time":1477082159147,"dist-tags":{"latest":"2.0.0"}}