{"id":19241692,"url":"https://github.com/exuanbo/reglax","last_synced_at":"2025-04-11T05:43:46.096Z","repository":{"id":40312926,"uuid":"291937147","full_name":"exuanbo/reglax","owner":"exuanbo","description":"☕ Relax and write some Regex","archived":false,"fork":false,"pushed_at":"2025-04-05T01:59:42.000Z","size":260,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T06:57:04.176Z","etag":null,"topics":["regex","regular-expression"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exuanbo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-09-01T08:11:02.000Z","updated_at":"2023-05-18T01:39:10.000Z","dependencies_parsed_at":"2023-09-24T09:14:12.337Z","dependency_job_id":"43ef84af-c2d8-491b-ab77-fbce21fad936","html_url":"https://github.com/exuanbo/reglax","commit_stats":{"total_commits":87,"total_committers":2,"mean_commits":43.5,"dds":0.4137931034482759,"last_synced_commit":"55ef8f2d5887844121e6df64a8be9e63470cc30f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exuanbo%2Freglax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exuanbo%2Freglax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exuanbo%2Freglax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exuanbo%2Freglax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exuanbo","download_url":"https://codeload.github.com/exuanbo/reglax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351453,"owners_count":21089270,"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":["regex","regular-expression"],"created_at":"2024-11-09T17:12:17.535Z","updated_at":"2025-04-11T05:43:46.072Z","avatar_url":"https://github.com/exuanbo.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/exuanbo"],"categories":[],"sub_categories":[],"readme":"# reglax\n\n\u003e ☕ Relax and write some Regex\n\n[![npm](https://img.shields.io/npm/v/reglax.svg?style=flat-square)](https://www.npmjs.com/package/reglax)\n[![Travis CI](https://img.shields.io/travis/com/exuanbo/reglax/master.svg?style=flat-square)](https://travis-ci.com/github/exuanbo/reglax)\n[![David](https://img.shields.io/david/dev/exuanbo/reglax.svg?style=flat-square)](https://david-dm.org/exuanbo/reglax)\n[![License](https://img.shields.io/github/license/exuanbo/reglax.svg?style=flat-square)](https://github.com/exuanbo/reglax/blob/master/LICENSE)\n\nCreates regular expressions that are composable, reusable, and commentable.\n\n## Usage\n\n```sh\nnpm install reglax\n```\n\n```js\nconst {\n  matchers,\n  flags,\n  whole,\n  repeat,\n  alpha,\n  numeric,\n  and,\n  or,\n  wildcard,\n  extra,\n  capture,\n  group,\n  look,\n  regex\n} = require('reglax')\n\n// or\nimport { something } from 'reglax'\n```\n\n### API\n\nSee generated [typedoc](https://exuanbo.github.io/reglax/modules/_index_.html).\n\n### Examples\n\n[test/index.spec.js](https://github.com/exuanbo/reglax/blob/master/test/index.spec.js) can be a good reference.\n\n```js\nregex(\n  whole(\n    or(numeric(7), capture(alpha(0, 3)), extra(matchers.ANY, matchers.LAZY))\n  ),\n  and(flags.GLOBAL, flags.INSENSITIVE)\n)\n// -\u003e /^\\d{7}|([A-z]{0,3})|.+?$/gi\n```\n\n```js\n// Matches all New York Driver's licenses\nregex(\n  or(\n    and(alpha(1), numeric(7)),\n    and(alpha(1), numeric(18)),\n    and(numeric(8, 9)),\n    and(numeric(16)),\n    and(alpha(8))\n  )\n)\n// -\u003e /[A-z]{1}\\d{7}|[A-z]{1}\\d{18}|\\d{8,9}|\\d{16}|[A-z]{8}/\n```\n\n## License\n\n[MIT](https://github.com/exuanbo/reglax/blob/master/LICENSE)\n\n## Donate\n\n\u003ca href=\"https://www.buymeacoffee.com/exuanbo\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/lato-orange.png\" alt=\"Buy Me A Coffee\" height=\"38.25px\" width=\"162.75px\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexuanbo%2Freglax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexuanbo%2Freglax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexuanbo%2Freglax/lists"}