{"id":23510818,"url":"https://github.com/danielkov/urlifyjs","last_synced_at":"2025-05-13T17:17:18.764Z","repository":{"id":42412971,"uuid":"62092278","full_name":"danielkov/urlifyjs","owner":"danielkov","description":"Small module to turn strings into valid URLs.","archived":false,"fork":false,"pushed_at":"2019-05-08T14:13:45.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T16:14:59.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-27T22:20:32.000Z","updated_at":"2020-08-10T15:27:48.000Z","dependencies_parsed_at":"2022-09-06T09:41:45.920Z","dependency_job_id":null,"html_url":"https://github.com/danielkov/urlifyjs","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/danielkov%2Furlifyjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Furlifyjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Furlifyjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Furlifyjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielkov","download_url":"https://codeload.github.com/danielkov/urlifyjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253576269,"owners_count":21930169,"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-25T12:12:26.320Z","updated_at":"2025-05-13T17:17:18.694Z","avatar_url":"https://github.com/danielkov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UrlifyJS\n\nA small module that will help you with URL validation and turning strings into URLs.\n\n## Example usage:\n\nTo use it with the default options:\n\n```js\nvar urlify = require('urlifyjs');\n\nvar string = 'Welcome, Dr# Größ!';\n\n// url === 'Welcome-Dr-Gross'\nvar url = urlify(string);\n```\n## Configurations\n\n```js\nvar urlify = require('urlifyjs');\n\nvar string = 'Welcome, Dr# Größ!';\n\nvar config = {\n   accept: '#',\n   whiteSpace: '_',\n   special: '#',\n   sz: true,\n   lowerCase: true\n}\n\n// url === 'welcome#_dr#_grosz#'\nvar url = urlify(string, config);\n```\n\n**accept:** tells Urlify which characters to accept. For instance if checking for a mailto: you want to accept '@'s. *Defaults to '-'*.\n\n**whiteSpace:** this is what whitespaces will be replaced with. *Defaults to '-'*.\n\n**special:** the value of this will be put in place of special characters. *Defaults to ''*.\n\n**sz:** the German character 'Eszet' is replaced by 'ss' by default. Setting this true will make it so that those characters are instead replaced with 'sz'. *Defaults to false*.\n\n**lowerCase:** the returned string will be converted to lower-case if this is set true. *Defaults to false*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkov%2Furlifyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielkov%2Furlifyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkov%2Furlifyjs/lists"}