{"id":16756796,"url":"https://github.com/charmander/reflect-type-3","last_synced_at":"2026-04-24T22:33:31.464Z","repository":{"id":57352117,"uuid":"121314346","full_name":"charmander/reflect-type-3","owner":"charmander","description":"Parser for a simplified, regular subset of JavaScript regex","archived":false,"fork":false,"pushed_at":"2020-12-05T18:01:30.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-24T14:06:14.588Z","etag":null,"topics":["node","regex"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/reflect-type-3","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charmander.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}},"created_at":"2018-02-12T23:12:49.000Z","updated_at":"2020-12-05T18:01:32.000Z","dependencies_parsed_at":"2022-09-19T02:01:00.748Z","dependency_job_id":null,"html_url":"https://github.com/charmander/reflect-type-3","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/charmander/reflect-type-3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Freflect-type-3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Freflect-type-3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Freflect-type-3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Freflect-type-3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charmander","download_url":"https://codeload.github.com/charmander/reflect-type-3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Freflect-type-3/sbom","scorecard":{"id":274573,"data":{"date":"2025-08-11","repo":{"name":"github.com/charmander/reflect-type-3","commit":"c4e51abeb3e5483ad0528ca74320203792134171"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/charmander/reflect-type-3/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/charmander/reflect-type-3/nodejs.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:32","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: ISC License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T14:08:19.282Z","repository_id":57352117,"created_at":"2025-08-17T14:08:19.282Z","updated_at":"2025-08-17T14:08:19.282Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["node","regex"],"created_at":"2024-10-13T03:42:06.742Z","updated_at":"2026-04-24T22:33:31.447Z","avatar_url":"https://github.com/charmander.png","language":"JavaScript","readme":"A parser for a simplified, regular subset of JavaScript regular expressions that doesn’t support capturing.\n\nBecause it’s regular, the subset doesn’t support:\n\n- backreferences\n\nBecause it doesn’t support capturing, it doesn’t support:\n\n- capturing groups (`(…)` unless `(?:…)`)\n- greediness modifiers\n\nBecause it’s simplified, it doesn’t support:\n\n- assertions (anchors, word boundaries, `(?=…)`, and `(?!…)`)\n- escapes with easy alternatives that are obscure (`\\cX`), uncommon (`\\f`, `\\v`), or syntactically awkward (`\\0`)\n- escapes that aren’t necessary in any context\n- `\\s` and `\\S` (what they match is not obvious)\n\n\n## Syntax\n\nWhen syntactically valid, a pattern has the same meaning as it does in JavaScript (i.e. when passed to the `RegExp` constructor) with no flags.\n\n```abnf\npattern = disjunction\n\ndisjunction = alternative [ \"|\" disjunction ]\n\nalternative = *term\n\nterm = atom [ quantifier ]\n\nquantifier =\n    \"*\" /                        ; zero or more\n    \"+\" /                        ; one or more\n    \"?\" /                        ; zero or one\n    \"{\" 1*DIGIT \"}\" /            ; exactly count. counts are at most Number.MAX_SAFE_INTEGER.\n    \"{\" 1*DIGIT \",}\" /           ; at least count\n    \"{\" 1*DIGIT \",\" 1*DIGIT \"}\"  ; at least first count and at most second. must be a non-empty range.\n\natom =\n    pattern-character /        ; the character itself\n    \".\" /                      ; any character except CR, LF, U+2028, and U+2029\n    \"\\\" atom-escape /\n    character-class /\n    \"(?:\" pattern \")\"\n\ncharacter-class =\n    \"[\"\n    [ \"^\" ]                    ; indicates a negated character class\n    *range\n    \"]\"\n\nrange =\n    range-character \"-\" range-character /  ; must be a non-empty range\n    range-character /\n    \"\\\" predefined-range\n\nrange-character =\n    range-plain-character /\n    \"\\\" range-escape\n\ncharacter-escape =\n    %s\"n\" /                      ; LF\n    %s\"r\" /                      ; CR\n    %s\"t\" /                      ; tab\n    %s\"x\" 2hex-digit /\n    %s\"u\" 4hex-digit\n\npredefined-range =\n    \"d\" / \"D\" /                ; [0-9], [^0-9]\n    \"w\" / \"W\"                  ; [0-9A-Za-z_], [^…]\n\natom-escape =\n    character-escape /\n    predefined-range /\n    pattern-metacharacter /\n    \"/\"\n\nrange-escape =\n    character-escape /\n    range-metacharacter /\n    \"/\" /\n    \"[\"\n\nrange-metacharacter =\n    \"^\" / \"\\\" / \"-\" / \"]\"\n\npattern-metacharacter =\n    \"^\" / \"$\" / \"\\\" / \".\" / \"*\" / \"+\" / \"?\" /\n    \"(\" / \")\" / \"[\" / \"]\" / \"{\" / \"}\" / \"|\"\n\nhex-digit =\n    HEXDIG /                   ; 0-9A-F\n    %x61-66                    ; a-f\n```\n\n`pattern-character` is any UTF-16 code unit that is not a `pattern-metacharacter`. Similarly, `range-plain-character` is any UTF-16 code unit that is not a `range-metacharacter`.\n\n\n## Parser output format\n\nEvery node has a `type` property (a string). The node types and their properties are:\n\n### `Disjunction`\n\n- `alternatives`, a non-empty array of `Alternative` nodes\n\n### `Alternative`\n\n- `terms`, an array of `Term` nodes\n\n### `Term`\n\n- `atom`, a `Character`, `CharacterClass`, or `Disjunction` node\n- `quantifier`, `null` or an object with the following properties:\n    - `min`, the minimum number of repetitions indicated by the quantifier; an integer from 0 to 2^53−1\n    - `max`, the maximum number of repetitions indicated by the quantifier; an integer from `min` to 2^53−1, or `Infinity`\n\n### `Character`\n\n- `value`, an integer UTF-16 code unit\n\n### `CharacterClass`\n\n- `negated`, a boolean\n- `ranges`, an array of objects with inclusive integer `start` and `end` properties representing UTF-16 code units\n\nNodes can be modified safely.\n\n\n## API\n\n### `.parse(string)`\n\nReturns a `Disjunction` node or throws a `PatternError`.\n\n### `.PatternError`\n\nThe type of error thrown by `.parse`.\n\n\n## Example\n\n```js\nconst ret3 = require('reflect-type-3');\n\nret3.parse(/[ab]+/.source)\n```\n\n```js\n({\n    type: 'Disjunction',\n    alternatives: [{\n        type: 'Alternative',\n        terms: [{\n            type: 'Term',\n            atom: {\n                type: 'CharacterClass',\n                negated: false,\n                ranges: [\n                    {start: 97, end: 97},\n                    {start: 98, end: 98},\n                ],\n            },\n            quantifier: {\n                min: 1,\n                max: Infinity,\n            },\n        }],\n    }],\n})\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmander%2Freflect-type-3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharmander%2Freflect-type-3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmander%2Freflect-type-3/lists"}