{"id":16720815,"url":"https://github.com/bnjmnt4n/regjsgen","last_synced_at":"2025-04-09T05:12:51.584Z","repository":{"id":17569965,"uuid":"20373370","full_name":"bnjmnt4n/regjsgen","owner":"bnjmnt4n","description":"Generate regular expressions from regjsparser’s AST.","archived":false,"fork":false,"pushed_at":"2024-09-17T16:22:06.000Z","size":1014,"stargazers_count":32,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-29T21:02:04.166Z","etag":null,"topics":["ast","generate","regex","regexp","regjs","regular-expression"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/regjsgen","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"CyanogenMod/android_device_samsung_nobleltetmo","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bnjmnt4n.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-MIT.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-01T08:14:02.000Z","updated_at":"2024-09-17T16:22:03.000Z","dependencies_parsed_at":"2024-11-05T23:49:16.413Z","dependency_job_id":null,"html_url":"https://github.com/bnjmnt4n/regjsgen","commit_stats":{"total_commits":113,"total_committers":7,"mean_commits":"16.142857142857142","dds":"0.34513274336283184","last_synced_commit":"dbed4c979cc1bc1e199d06ac3da3e95cc2886d86"},"previous_names":["d10/regjsgen"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnjmnt4n%2Fregjsgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnjmnt4n%2Fregjsgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnjmnt4n%2Fregjsgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnjmnt4n%2Fregjsgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bnjmnt4n","download_url":"https://codeload.github.com/bnjmnt4n/regjsgen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238207647,"owners_count":19434096,"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":["ast","generate","regex","regexp","regjs","regular-expression"],"created_at":"2024-10-12T22:26:45.082Z","updated_at":"2025-02-16T09:10:19.893Z","avatar_url":"https://github.com/bnjmnt4n.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# regjsgen [![Build status][ci-img]][ci] [![Code coverage status][codecov-img]][codecov]\n\nGenerate regular expressions from [regjsparser][regjsparser]’s AST.\n\n## Installation\n\n```sh\nnpm i regjsgen\n```\n\n## API\n\n### `regjsgen.generate(ast)`\n\nThis function accepts an abstract syntax tree representing a regular expression (see [regjsparser][regjsparser]), and returns the generated regular expression string.\n\n```js\nconst regjsparser = require('regjsparser');\nconst regjsgen = require('regjsgen');\n\n// Generate an AST with `regjsparser`.\nlet ast = regjsparser.parse(regex);\n\n// Modify AST\n// …\n\n// Generate `RegExp` string with `regjsgen`.\nlet regex = regjsgen.generate(ast);\n```\n\n## Support\n\nTested on Node.js 16 and 18.\u003cbr\u003e\nCompatible with regjsparser v0.10.0’s AST.\n\n\n[ci]: https://github.com/bnjmnt4n/regjsgen/actions\n[ci-img]: https://github.com/bnjmnt4n/regjsgen/workflows/Node.js%20CI/badge.svg\n[codecov]: https://codecov.io/gh/bnjmnt4n/regjsgen\n[codecov-img]: https://codecov.io/gh/bnjmnt4n/regjsgen/branch/main/graph/badge.svg\n[regjsparser]: https://github.com/jviereck/regjsparser\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnjmnt4n%2Fregjsgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbnjmnt4n%2Fregjsgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnjmnt4n%2Fregjsgen/lists"}