{"library":"api-query-params","type":"library","category":null,"description":"api-query-params is a JavaScript library designed to convert standard API URL query parameters into MongoDB query objects, facilitating advanced filtering, sorting, and projection directly from HTTP requests. Currently at version 6.1.0, the package sees active maintenance with minor versions and patches released regularly to address bug fixes and introduce new features. Key differentiators include its comprehensive support for most MongoDB operators ($in, $regexp, $gt, etc.), nested object querying, and type casting, while remaining agnostic to the specific web framework (e.g., Express, Koa) or MongoDB library (e.g., Mongoose). It offers customization for query keys and options and is noted for its compact, dependency-free ES6 codebase, aiming for simplicity and full test coverage.","language":"javascript","status":"active","version":"6.1.0","tags":["javascript","node","api","query parameters","mongodb","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install api-query-params","imports":["import aqp from 'api-query-params';","import type { AqpQuery } from 'api-query-params';","import aqp from 'api-query-params';\n// ... later ...\nconst query = aqp(req.query);"]},{"cmd":"yarn add api-query-params","imports":[]},{"cmd":"pnpm add api-query-params","imports":[]}],"homepage":null,"github":"https://github.com/loris/api-query-params","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/api-query-params","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/api-query-params/compatibility"}}