{"id":23276250,"url":"https://github.com/dinoscapeprogramming/validurl","last_synced_at":"2025-04-06T11:45:02.257Z","repository":{"id":144663963,"uuid":"467202625","full_name":"DinoscapeProgramming/validurl","owner":"DinoscapeProgramming","description":"Check is a URL valid or not","archived":false,"fork":false,"pushed_at":"2022-03-07T18:25:35.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T17:28:11.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DinoscapeProgramming.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":"2022-03-07T17:57:01.000Z","updated_at":"2022-03-07T18:33:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9cd522a-ed6b-4688-9bf8-3e04382c9d4f","html_url":"https://github.com/DinoscapeProgramming/validurl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2Fvalidurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2Fvalidurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2Fvalidurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2Fvalidurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DinoscapeProgramming","download_url":"https://codeload.github.com/DinoscapeProgramming/validurl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478252,"owners_count":20945262,"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":[],"created_at":"2024-12-19T21:30:08.242Z","updated_at":"2025-04-06T11:45:02.234Z","avatar_url":"https://github.com/DinoscapeProgramming.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Valid URL\n\n## Get started\nJust copy the __validurl.js__ file. And then you're ready to use this nicely package.\n\n## Documentation\n### Require the package\n```js\nconst validurl = require('./validurl.js');\n```\n\n### Use the package\n```js\nvalidurl(\"httos://github.com\")\n```\n\n## Example\n```js\nconst validurl = require('./validurl.js');\nconst urls = {\n  \"https://github.com\",\n  \"This is not a URL\"\n}\nconsole.log(validurl(urls[0])) // returns true\nconsole.log(validurl(urls[1])) // returns false\n```\n\n## HTML\n### Use with script tag\n```html\n\u003cscript src=\"https://valid-url.dinoscapedinosc.repl.co\"\u003e\u003c/script\u003e\n```\n\n### Example\n```html\n\u003cscript\u003e\n  alert($(\"github.com\"))\n  alert($(\"This is not a URL\"))\n\u003c/script\u003e\n```\n\n## Note\nThis package may take some time to load because it uses the JavaScript __new URL()__ component. Sorry, but we now this problem.\n\n## Developer\nAdd __Dinoscape#4056__ on Discord to get in contact with me.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinoscapeprogramming%2Fvalidurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinoscapeprogramming%2Fvalidurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinoscapeprogramming%2Fvalidurl/lists"}