Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
waterline-criteria
Advanced tools
Utility library for use in Sails adapters where you need to filter a list of output using a criteria object
Helper module designed for adapters which communicate with key/value stores such as Sails-Disk, Sails-Memory, and sails-redis (i.e. they already implement the semantic
interface, but need to implement the queryable
interface)
========================================
Jump to... | |
---|---|
I | Browser |
II | Node.js |
III | Version Notes |
IV | License |
========================================
$ bower install waterline-criteria
<!-- .... -->
</body>
<script type="text/javascript" src="./path/to/bower_components/waterline-criteria/index.js"></script>
<script type="text/javascript">
var someData = [{
id: 1,
name: 'Lyra'
}, {
id: 2,
name 'larry'
}];
var x = wlFilter(someData, {
where: {
name: { contains: 'lyr' }
}
}).results;
// x ==> [{name: 'Lyra', id: 1}]
</script>
</html>
========================================
$ npm install waterline-criteria
var wlFilter = require('waterline-criteria');
var someData = [{
id: 1,
name: 'Lyra'
}, {
id: 2,
name 'larry'
}];
var x = wlFilter(someData, {
where: {
name: { contains: 'lyr' }
}
}).results;
// x ==> [{name: 'Lyra', id: 1}]
========================================
The master branch of this repository holds waterline-criteria for 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.
========================================
MIT © 2014 Mike McNeil, Balderdash & contributors
This module is part of the Sails framework, and is free and open-source under the MIT License.
FAQs
Utility library for working with Waterline criterias. Especially useful when building Sails adapters for key/value databases.
The npm package waterline-criteria receives a total of 13,811 weekly downloads. As such, waterline-criteria popularity was classified as popular.
We found that waterline-criteria demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.