{"library":"graphmatch","type":"library","category":null,"description":"Graphmatch is a low-level utility designed for matching a string against a directed acyclic graph (DAG) composed of regular expressions. It provides flexible matching capabilities, supporting both full and partial string matches against these complex regex structures. Developers can exercise fine-grained control over partial matching behavior at the individual node level within the graph. A key feature is the ability to compile the entire graph into a single JavaScript RegExp object, which significantly optimizes performance for scenarios requiring multiple matches against the same graph. The package is currently at version 1.1.1 and appears to be actively maintained, though no specific release cadence is outlined in the documentation. Its core differentiation lies in offering a programmatic, graph-based approach to regex matching, which is more powerful and manageable than composing single, overly complex regular expressions or chaining multiple simple ones, particularly useful for structured pattern recognition like advanced globbing.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","regex","regexp","dag","graph","match","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install graphmatch","imports":["import graphmatch from 'graphmatch';","import graphmatch from 'graphmatch';\nconst compiledRegex = graphmatch.compile(GRAPH_DEFINITION);","type GraphNode = { regex: RegExp; children?: GraphNode[]; partial?: boolean; };"]},{"cmd":"yarn add graphmatch","imports":[]},{"cmd":"pnpm add graphmatch","imports":[]}],"homepage":null,"github":"https://github.com/fabiospampinato/graphmatch","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/graphmatch","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/graphmatch/compatibility"}}