{"library":"odata-parser","title":"OData Query String Parser","description":"odata-parser is an abandoned Node.js library designed to parse OData query strings into an Abstract Syntax Tree (AST). It is based on PEG.js for its parsing grammar. The package currently sits at version 1.4.1, with its last update over a decade ago (April 2016) and its GitHub repository archived by Auth0 in April 2019, rendering it read-only. This indicates a complete cessation of development, maintenance, and security updates. Due to its age, it primarily supports older OData specifications (likely v2 or v3) and lacks support for modern OData v4 features. Key differentiators at the time of its development included providing a straightforward way to process OData query syntax for Node.js applications, but it has been superseded by more modern and actively maintained OData parsers that support current specifications and module systems.","language":"javascript","status":"abandoned","last_verified":"Sun Apr 19","install":{"commands":["npm install odata-parser"],"cli":null},"imports":["const parser = require('odata-parser');","const { parse } = require('odata-parser');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const parser = require('odata-parser');\nconst util = require('util');\n\n// Basic query options\nlet ast1 = parser.parse(\"$top=10&$skip=5&$select=foo\");\nconsole.log(\"Basic Query AST:\");\nconsole.log(util.inspect(ast1, { depth: null }));\n\n// Filter with logical operators\nlet ast2 = parser.parse(\"$filter=Name eq 'John' and LastName lt 'Doe'\");\nconsole.log(\"\\nFilter with logical operators AST:\");\nconsole.log(util.inspect(ast2, { depth: null }));\n\n// Filter with functions\nlet ast3 = parser.parse(\"$filter=substringof('nginx', Servers)\");\nconsole.log(\"\\nFilter with functions AST:\");\nconsole.log(util.inspect(ast3, { depth: null }));","lang":"javascript","description":"Demonstrates parsing various OData query strings including basic options, logical filters, and function calls.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}