</>PackageGraphPackageGraph

sift

npmv17.1.3TypeScript

MongoDB 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

363 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

javascriptFull 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) {
Example truncated — see the full README.

Dependencies

Declared by sift v17.1.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (15)

@rollup/plugin-replace ^2.3.2@rollup/plugin-terser ^0.4.4@rollup/plugin-typescript 8.2.1@types/node ^13.7.0bson ^6.6.0eval ^0.1.8husky ^9.0.11mocha 10.4.0mongodb ^3.6.6prettier 3.2.5pretty-quick ^4.0.0rimraf ^5.0.5rollup ^4.14.2tslib 2.6.2typescript 5.4.5

Used by

Popular packages that depend on sift.

Relationship graph

Dependencies (left) and dependents (right) of sift.

mongoosesift
sift dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 10 days apart.

Recent versions of sift
VersionPublishedSizeLicense
17.1.3latest2 years ago363 KBMIT
17.1.22 years ago363 KBMIT
17.1.12 years ago341 KBMIT
17.1.02 years ago339 KBMIT
17.0.13 years ago394 KBMIT
16.0.13 years ago371 KBMIT
16.0.04 years ago368 KBMIT
15.1.34 years ago284 KBMIT
15.1.24 years ago90 KBMIT
15.1.14 years ago113 KBMIT
15.1.04 years ago284 KBMIT
15.0.05 years ago285 KBMIT
14.0.35 years ago282 KBMIT
14.0.25 years ago282 KBMIT
14.0.15 years ago282 KBMIT

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.