{"library":"mongodb-query-parser","type":"library","category":null,"description":"Safely parse and validate MongoDB query strings (filters, projections, sort, etc.) into BSON-typed JavaScript objects. Current stable version is 4.7.12. Released as part of MongoDB DevTools Shared, with active maintenance and minor releases as needed. Supports ESM and CJS, ships TypeScript types, and integrates with Codemirror for syntax highlighting detection. Key differentiator: lossless BSON type handling (e.g., ObjectId, ISODate) from string input, unlike naive JSON.parse.","language":"javascript","status":"active","version":"4.7.12","tags":["javascript","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongodb-query-parser","imports":["import parse from 'mongodb-query-parser'","import { parseFilter } from 'mongodb-query-parser'","import { toJavascriptString } from 'mongodb-query-parser'","import { ParseError } from 'mongodb-query-parser'"]},{"cmd":"yarn add mongodb-query-parser","imports":[]},{"cmd":"pnpm add mongodb-query-parser","imports":[]}],"homepage":"https://github.com/mongodb-js/devtools-shared","github":"https://github.com/mongodb-js/devtools-shared","docs":null,"changelog":null,"pypi":null,"npm":"mongodb-query-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}