{"id":15361978,"url":"https://github.com/tj/node-monquery","last_synced_at":"2025-04-15T07:30:53.177Z","repository":{"id":13838246,"uuid":"16535180","full_name":"tj/node-monquery","owner":"tj","description":"mongodb query language for humans","archived":false,"fork":false,"pushed_at":"2014-10-11T18:58:42.000Z","size":188,"stargazers_count":106,"open_issues_count":2,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-13T21:56:10.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tj.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-05T04:40:48.000Z","updated_at":"2023-08-20T11:25:01.000Z","dependencies_parsed_at":"2022-09-06T14:11:46.252Z","dependency_job_id":null,"html_url":"https://github.com/tj/node-monquery","commit_stats":null,"previous_names":["visionmedia/node-monquery"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fnode-monquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fnode-monquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fnode-monquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fnode-monquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tj","download_url":"https://codeload.github.com/tj/node-monquery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249026689,"owners_count":21200491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T12:57:47.032Z","updated_at":"2025-04-15T07:30:52.934Z","avatar_url":"https://github.com/tj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# monquery\n\n  Lucene-inspired string-based mongodb query language for humans (and ferrets).\n\n## Installation\n\n```\n$ npm install monquery\n```\n\n## Why?\n\n  1. Nicer UX for the odd search / log filtering\n  2. Writing JSON queries is a PITA\n\n## Example\n\n```js\nvar compile = require('monquery');\nvar str = 'level:error OR type:upload';\nvar query = compile(str);\n```\n\n## Querying\n\n### Fields\n\n  Specify field names with optional values:\n\n```js\nlevel:error\n```\n\nyields\n\n```js\n{ level: 'error' }\n```\n\n### Booleans\n\n  Omit value to imply __true__:\n\n```js\nfailed\n```\n\nyields\n\n```js\n{ failed: true }\n```\n\n  Or specify a boolean-ish value (true, false, yes, no):\n\n```js\nfailed: no\n```\n\nyields\n\n```js\n{ failed: false }\n```\n\n### Operators\n\n  Currently supports __AND__ / __OR__, which may be nested:\n\n```js\n(level:error AND type:\"upload failed\") OR user.name.first:Tobi\n```\n\nyields\n\n```js\n{ '$or':\n   [ { '$and': [ { level: 'error' }, { type: 'upload failed' } ] },\n     { 'user.name.first': 'Tobi' } ] }\n```\n\n### Regular Expressions\n\n  Regexps may be used with the `//` syntax:\n\n```js\nlevel:info AND name:/^To/\n```\n\nyields\n\n```js\n{ '$and': [ { level: 'info' }, { name: /^To/ } ] }\n```\n\n### Patterns\n\n  Wildcards may be used to generate regular expressions:\n\n```js\nlevel:error AND hostname:api-*\n```\n\nyields\n\n```js\n{ '$and': [ { level: 'error' }, { hostname: /^api-.*$/ } ] }\n```\n\n# License\n\n  MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fnode-monquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftj%2Fnode-monquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fnode-monquery/lists"}