{"id":25171258,"url":"https://github.com/basemax/url-validator-nodejs","last_synced_at":"2026-06-19T18:32:25.906Z","repository":{"id":233637404,"uuid":"625549779","full_name":"BaseMax/url-validator-nodejs","owner":"BaseMax","description":"This is a simple module for validating urls in nodejs and javascript that help you to extract urls from a text, check if a text has a url, check if a text has a specific url, and check if a text is excatly a url.","archived":false,"fork":false,"pushed_at":"2023-04-09T18:17:06.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T11:57:35.264Z","etag":null,"topics":["javascript","js","nodejs","regex","regular-expression","regular-expression-parser","regular-expressions","url-validate","url-validator","validate","validator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.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}},"created_at":"2023-04-09T13:13:15.000Z","updated_at":"2023-04-09T18:27:28.000Z","dependencies_parsed_at":"2024-04-17T01:12:43.403Z","dependency_job_id":"f33435cb-98b9-4f59-baa7-6f1afc50d9f5","html_url":"https://github.com/BaseMax/url-validator-nodejs","commit_stats":null,"previous_names":["basemax/url-validator-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/url-validator-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Furl-validator-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Furl-validator-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Furl-validator-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Furl-validator-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/url-validator-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Furl-validator-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34544403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["javascript","js","nodejs","regex","regular-expression","regular-expression-parser","regular-expressions","url-validate","url-validator","validate","validator"],"created_at":"2025-02-09T09:19:42.638Z","updated_at":"2026-06-19T18:32:25.889Z","avatar_url":"https://github.com/BaseMax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# url-validator-nodejs\n\nThis is a simple module for validating urls in nodejs and javascript that help you to extract urls from a text, check if a text has a url, check if a text has a specific url, and check if a text is excatly a url.\n\n## Features\n\n- Extract all urls from a text\n- Check if a text has a url\n- Check if a text has a specific url\n- Check if a text is excatly a url\n\n## Using\n\nImport the module:\n\n```javascript\nconst url_validator = require(\"./url-validator\");\n```\n\nThen you can extract all urls from a text:\n\n```javascript\nconsole.log(url_validator.match(\"https://google.com/first/second/third and site.com/test\"));\n```\n\nOr you can check if a text has a url:\n\n```javascript\nconsole.log(url_validator.has(\"1 https://google.com/first/second/third 2\"));\n```\n\nOr you want to check your input is excatly a url:\n\n```javascript\nconsole.log(url_validator.exact(\"!!!!\"));\nconsole.log(url_validator.exact(\"https://google.com/first/second/third\"));\n```\n\nOr you can check if a text has a specific url:\n\n```javascript\nconsole.log(url_validator.includes(\"first https://google.com/first/second/third second google.com sallam.org bye.net\", \"https://google.com/first/second/third\"));\nconsole.log(url_validator.includes(\"first https://google.com/first/second/third second google.com sallam.org bye.net\", \"bye.net\"));\nconsole.log(url_validator.includes(\"first https://google.com/first/second/third second google.com sallam.org bye.net\", \"xxxxxxxxxxxx.net\"));\n```\n\nCopyright 2023, Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Furl-validator-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Furl-validator-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Furl-validator-nodejs/lists"}