{"id":15707101,"url":"https://github.com/andrewda/valid-github-username","last_synced_at":"2025-05-12T19:27:21.466Z","repository":{"id":57390094,"uuid":"113949613","full_name":"andrewda/valid-github-username","owner":"andrewda","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-27T20:37:07.000Z","size":4,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T04:08:39.201Z","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/andrewda.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":"2017-12-12T05:56:31.000Z","updated_at":"2021-08-14T22:33:13.000Z","dependencies_parsed_at":"2022-09-15T05:21:33.579Z","dependency_job_id":null,"html_url":"https://github.com/andrewda/valid-github-username","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/andrewda%2Fvalid-github-username","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewda%2Fvalid-github-username/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewda%2Fvalid-github-username/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewda%2Fvalid-github-username/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewda","download_url":"https://codeload.github.com/andrewda/valid-github-username/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253807540,"owners_count":21967378,"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-10-03T20:36:36.044Z","updated_at":"2025-05-12T19:27:21.445Z","avatar_url":"https://github.com/andrewda.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# valid-github-username\n\n## Installation\nMake sure you have node installed. Then clone the repo.\n\n    git clone https://github.com/andrewda/valid-github-username.git\n    \n## Usage\nUse this code to import the code:\n\n    const validGitHubUsername = require('./index');\n    \nthen use the function by passing in a username:\n    \n    let username = validGitHubUsername('kx chen');\n    \nIt will then return a new username that is valid (in this example without spaces).\n    \n## Checks it performs:\n\n    \u003e valid-github-username@0.0.1 test /home/sheshank/valid-github-username\n    \u003e mocha test.js\n\n\n\n      removes illegal characters\n        ✓ removes spaces\n        ✓ removes special characters\n\n      removes illegal hyphen placement\n        ✓ removes consecutive dashes\n        ✓ removes trailing dashes\n        ✓ removes leading dashes\n\n      length should not exceed 39\n        ✓ does not accept length \u003e 39\n\n## Final output:\nIf it passes it should output `passing`. For ex:\n\n      6 passing (7ms)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewda%2Fvalid-github-username","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewda%2Fvalid-github-username","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewda%2Fvalid-github-username/lists"}