Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

sift

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sift - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

examples/test.html

40

package.json
{
"name": "sift",
"description": "mongodb query style array filtering",
"version": "0.0.2",
"repository": {},
"engines": {},
"dependencies": {},
"devDependencies": {
"vows": "*",
"underscore": "*",
"colors": "*",
"benchmark": "*",
"express": "*",
"validator": "*"
},
"main": "./sift.js",
"scripts": {
"test": "vows --spec"
}
"name": "sift",
"description": "mongodb query style array filtering",
"version": "0.0.3",
"repository": {
"type": "git",
"url": "git://github.com/crcn/sift.js.git"
},
"repository": {},
"engines": {},
"dependencies": {},
"devDependencies": {
"vows": "*",
"underscore": "*",
"colors": "*",
"benchmark": "*",
"express": "*",
"validator": "*"
},
"main": "./sift.js",
"scripts": {
"test": "vows --spec"
}
}
## MongoDB inspired array filtering [![Build Status](https://secure.travis-ci.org/crcn/sift.js.png)](https://secure.travis-ci.org/crcn/sift.js)
Sift is the write less, do more filtering library which uses mongodb queries.
Sift is a small (2 kb minified), write less, do more filtering library which uses mongodb queries.

@@ -38,3 +38,3 @@

name: function(value) {
return name.length == 5;
return value.length == 5;
}

@@ -41,0 +41,0 @@ });

@@ -311,3 +311,3 @@ /*

return !n || false;
return !n;

@@ -333,3 +333,3 @@ },

return !n || false;
return !n;

@@ -469,3 +469,4 @@ },

//set the test function incase the sifter isn't needed
self.test = filter.test;
self.test = filter.test;
self.query = query;

@@ -472,0 +473,0 @@ return self;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc