sift
npmv17.1.3TypeScriptMongoDB query filtering in JavaScript
Adopt with care
sift is usable, with caveats. Last published 875 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- DMaintenance: grade D, Poor — a real concern.
Last published 875 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 363 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding sift to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the sift README.
import sift from "sift";
// intersecting arrays
const result1 = ["hello", "sifted", "array!"].filter(
sift({ $in: ["hello", "world"] }),
); // ['hello']
// regexp filter
const result2 = ["craig", "john", "jake"].filter(sift(/^j/)); //['john','jake']
// function filter
const testFilter = sift({
//you can also filter against functions
name: function (value) {Dependencies
Declared by sift v17.1.3. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (15)
Used by
Popular packages that depend on sift.
Relationship graph
Dependencies (left) and dependents (right) of sift.
Frequently installed together
RFC9562 UUIDs
An AST-based pattern checker for JavaScript.
A family of specs for interoperable TypeScript
Fast, unopinionated, minimalist web framework
Parse, validate, manipulate, and display dates
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
{G,S}et object values using MongoDB-like path notation
Expressive query building for MongoDB
Official client encryption module for the MongoDB Node.js driver
the most correct and second fastest glob implementation in JavaScript
TypeScript definitions for node
Tiny millisecond conversion utility
Release history
No releases in the last two years, typically about 10 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 17.1.3latest | 2 years ago | 363 KB | MIT |
| 17.1.2 | 2 years ago | 363 KB | MIT |
| 17.1.1 | 2 years ago | 341 KB | MIT |
| 17.1.0 | 2 years ago | 339 KB | MIT |
| 17.0.1 | 3 years ago | 394 KB | MIT |
| 16.0.1 | 3 years ago | 371 KB | MIT |
| 16.0.0 | 4 years ago | 368 KB | MIT |
| 15.1.3 | 4 years ago | 284 KB | MIT |
| 15.1.2 | 4 years ago | 90 KB | MIT |
| 15.1.1 | 4 years ago | 113 KB | MIT |
| 15.1.0 | 4 years ago | 284 KB | MIT |
| 15.0.0 | 5 years ago | 285 KB | MIT |
| 14.0.3 | 5 years ago | 282 KB | MIT |
| 14.0.2 | 5 years ago | 282 KB | MIT |
| 14.0.1 | 5 years ago | 282 KB | MIT |
Overview
sift is an npm package that mongoDB query filtering in JavaScript. It has 1 known dependents in the graph. The latest version is 17.1.3, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need mongoDB query filtering in JavaScript and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use sift?
sift is usable, with caveats. Last published 875 days ago.
How do I install sift?
Run `npm install sift` to add sift to your npm project.
What license is sift released under?
sift is distributed under the MIT license.
How popular is sift?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on sift.
Is sift still maintained?
The most recent release of sift (v17.1.3) was published 2 years ago.
Does sift run install scripts?
No. sift does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.