{"id":39003060,"url":"https://github.com/febryardiansyah/regex-pattern","last_synced_at":"2026-01-17T17:13:30.422Z","repository":{"id":51312327,"uuid":"289696337","full_name":"febryardiansyah/regex-pattern","owner":"febryardiansyah","description":"A simple Javascript \u0026 TypeScript module of Regex Pattern Collection for String Validation","archived":false,"fork":false,"pushed_at":"2022-10-19T03:44:09.000Z","size":204,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T08:34:58.540Z","etag":null,"topics":["email-validator","hacktoberfest","javascript","regex-pattern","typescript","validator"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/regexpattern-collection","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/febryardiansyah.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":"2020-08-23T13:55:05.000Z","updated_at":"2023-07-13T09:44:07.000Z","dependencies_parsed_at":"2022-09-13T07:50:15.789Z","dependency_job_id":null,"html_url":"https://github.com/febryardiansyah/regex-pattern","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/febryardiansyah/regex-pattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febryardiansyah%2Fregex-pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febryardiansyah%2Fregex-pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febryardiansyah%2Fregex-pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febryardiansyah%2Fregex-pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/febryardiansyah","download_url":"https://codeload.github.com/febryardiansyah/regex-pattern/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febryardiansyah%2Fregex-pattern/sbom","scorecard":{"id":395174,"data":{"date":"2025-08-11","repo":{"name":"github.com/febryardiansyah/regex-pattern","commit":"136330e4d43a97d77bf9d2b32b880fe51a796fa4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Code-Review","score":3,"reason":"Found 6/19 approved changesets -- score normalized to 3","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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT 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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T18:48:43.522Z","repository_id":51312327,"created_at":"2025-08-18T18:48:43.522Z","updated_at":"2025-08-18T18:48:43.522Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28512087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":["email-validator","hacktoberfest","javascript","regex-pattern","typescript","validator"],"created_at":"2026-01-17T17:13:30.297Z","updated_at":"2026-01-17T17:13:30.397Z","avatar_url":"https://github.com/febryardiansyah.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Regex-Pattern\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg width=480 src=\"docs/logo.png\"\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  A simple Javascript \u0026 TypeScript module of Regex Pattern Collection for String Validation\n\u003c/p\u003e\n\u003cbr\u003e\n\n[![Version](https://img.shields.io/npm/v/regexpattern-collection.svg?style=flat)](https://www.npmjs.com/package/regexpattern-collection)\n\u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/febryardiansyah/regex-pattern\"\u003e \n\u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/febryardiansyah/regex-pattern\"\u003e\n\n## Installation\n```bash\nnpm i regexpattern-collection\n```\n\n## Usage\n1. CommonJs\n```javascript\nconst { RegexValidation, RegexPattern } = require(\"regexpattern-collection\").default;\n\nRegexValidation.hasMatch(\"yourcrush@mail.com\", RegexPattern.email);//true\nRegexValidation.hasMatch(\"yourcrush\", RegexPattern.email);//false\n```\n\n2. ES6\n```typescript\nimport { RegexValidation, RegexPattern } from \"regexpattern-collection\"\n\nRegexValidation.hasMatch(\"yourcrush@mail.com\", RegexPattern.email);//true\n```\n\n## Regex Pattern Collection\n\n| Pattern   |     Type      | Description   |\n| --------  | -----------   | ------------  |\n|RegexPattern.email | Email |      email    |\n|RegexPattern.userName | Username |that may include _ and – having a length of 3 to 16 characters|\n|RegexPattern.url | Url | any url (https://, ftps://, tg://, zoommtg://, etc) |\n|RegexPattern.webUrl | Web URL | http,https |\n|RegexPattern.fileUrl | File URL | afp,ftp,ftps,smb,sftp,ssh,dav,davs |\n|RegexPattern.numberOnly | Number Only | only contains numbers|\n|RegexPattern.decimalNumber | Decimal Number | only contains decimal |\n|RegexPattern.htmltag | HTML Tag | only contains html tag |\n|RegexPattern.htmltag | MD5 Hash | only contains md5 |\n|RegexPattern.bitcoinaddress | Bitcoin Address | only contains bitcoin address |\n|RegexPattern.ipaddress | IP Address | only contains ip address |\n|RegexPattern.ipv4address | IPV4 Address | only contains ipv4 address |\n|RegexPattern.ipv6address | IPV6 Address | only contains ipv6 address |\n|RegexPattern.date | Date | will match a string as a date in the formats M/D/YY, M/D/YYY, MM/DD/YY, and MM/DD/YYYY |\n|RegexPattern.time12hours | Time 12 Hours | Time Format HH:MM 12-hour, optional leading 0 |\n|RegexPattern.time24hours | Time 24 Hours | Time Format HH:MM 24-hour, optional leading 0 |\n|RegexPattern.duplicateString | Duplicate String | duplicate string |\n|RegexPattern.slug | Slug | slug |\n|RegexPattern.passport | Passport | passport |\n|RegexPattern.passwordComplex | Password Complex | Should have 1 lowercase letter, 1 uppercase letter, 1 number, 1 special character and be at least 8 characters long|\n|RegexPattern.passwordModerate | Password Moderate | Should have 1 lowercase letter, 1 uppercase letter, 1 number and be at least 8 characters long|\n|RegexPattern.filenameWithExtension | File Name With Extension | support all extension (mp4, mp3, wav, png, jpg, gif, etc.) |\n|RegexPattern.imageExtension | Image Extension | jpeg,jpg,gif,png,bmp |\n|RegexPattern.audioExtension | Audio Extension | mp3,wav,wma,amr,ogg |\n|RegexPattern.videoExtension | Video Extension | mp4,avi,wmv,rmvb,mpg,mpeg,3gp |\n|RegexPattern.ocExtension | OC Extension | xlsx,xls,csv |\n|RegexPattern.pdfExtension | PDF Extension | pdf |\n|RegexPattern.binary | Binrary | binary numbers |\n|RegexPattern.base64 | Base64 | Base64 format |\n|RegexPattern.jwt | JWT | JSON Web Token format |\n|RegexPattern.currency | Currency | country currency |\n\n## License\n[MIT](https://github.com/febryardiansyah/regex-pattern/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebryardiansyah%2Fregex-pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffebryardiansyah%2Fregex-pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebryardiansyah%2Fregex-pattern/lists"}