A JavaScript library for filtering objects using jsql, a JSON-based query language similar to SQL. Current stable version is 1.1.2, release cadence is low (last update years ago). Key differentiator: allows querying plain JavaScript objects with dot-notation, range queries, and logical operators without a database. Lightweight, no dependencies.
npm install searchjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates filtering an array of objects using a jsql query with case-insensitive matching and deep dot-notation.
Use a custom filter or modify source if case-sensitive matching is needed.
Ensure range object format: { from: value1, to: value2 }.Be aware that arrays are treated as OR conditions within the path.
Consider migrating to a more modern alternative if new features are needed.
Use `import { matchArray } from 'searchjs'` instead of `import searchjs from 'searchjs'` when calling matchArray directly.Ensure data is an object or array before calling match functions.
No dependency data recorded yet.