{"library":"regexp-parser-literal","type":"library","category":null,"description":"regexp-parser-literal is a JavaScript and TypeScript library designed for parsing regular expression literals into an Abstract Syntax Tree (AST). It provides a convenient API built on top of the `regexpp2` library, offering functions such as `parseRegExp` to convert a full regular expression string into its AST representation, `parseFlags` for flag extraction, `parsePattern` for the pattern part, and `astToString` for serializing an AST back into a regular expression string. The current stable version is 1.1.40. While it does not adhere to a strict release cadence, updates are typically driven by enhancements to its underlying `regexpp2` dependency or specific utility requirements, such as improved emoji handling. A key differentiator is its ready-to-use utility functions that streamline common regex AST manipulations and its inclusion of a pre-defined `EMOJI_REGEX`. This makes it particularly useful for applications requiring programmatic analysis, validation, transformation, or generation of regular expressions, often found in linters, code formatting tools, or domain-specific language compilers. It aims to simplify direct interaction with the powerful `regexpp2` parser for common use cases.","language":"javascript","status":"active","version":"1.1.40","tags":["javascript","build","emoji","literal","parser","re","ast","regex","regexp","typescript"],"install":[{"cmd":"npm install regexp-parser-literal","imports":["import { parseRegExp } from 'regexp-parser-literal';","import { astToString } from 'regexp-parser-literal';","import { defaultRegExpParser } from 'regexp-parser-literal';","import { EMOJI_REGEX } from 'regexp-parser-literal';"]},{"cmd":"yarn add regexp-parser-literal","imports":[]},{"cmd":"pnpm add regexp-parser-literal","imports":[]}],"homepage":null,"github":"https://github.com/bluelovers/ws-regexp","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/regexp-parser-literal","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/regexp-parser-literal/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}