{"id":15290154,"url":"https://github.com/npm/unique-slug","last_synced_at":"2025-05-15T21:05:01.221Z","repository":{"id":31681056,"uuid":"35246620","full_name":"npm/unique-slug","owner":"npm","description":"Generate a unique character string suitible for use in files and URLs.","archived":false,"fork":false,"pushed_at":"2025-04-28T18:58:19.000Z","size":222,"stargazers_count":35,"open_issues_count":0,"forks_count":10,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-05-03T07:11:50.045Z","etag":null,"topics":["npm-cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-05-07T22:25:03.000Z","updated_at":"2025-04-28T18:58:22.000Z","dependencies_parsed_at":"2024-04-20T22:58:11.662Z","dependency_job_id":"646a90c0-34a8-43ab-aef6-f122b720a5a1","html_url":"https://github.com/npm/unique-slug","commit_stats":{"total_commits":75,"total_committers":14,"mean_commits":5.357142857142857,"dds":0.6666666666666667,"last_synced_commit":"4f243e2d8a75401f845938917b379a1ca99bb427"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Funique-slug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Funique-slug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Funique-slug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Funique-slug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npm","download_url":"https://codeload.github.com/npm/unique-slug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076850,"owners_count":22010611,"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":["npm-cli"],"created_at":"2024-09-30T16:05:45.591Z","updated_at":"2025-05-15T21:05:01.200Z","avatar_url":"https://github.com/npm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"unique-slug\n===========\n\nGenerate a unique character string suitible for use in files and URLs.\n\n```\nvar uniqueSlug = require('unique-slug')\n\nvar randomSlug = uniqueSlug()\nvar fileSlug = uniqueSlug('/etc/passwd')\n```\n\n### uniqueSlug(*str*) → String (8 chars)\n\nIf *str* is passed in then the return value will be its murmur hash in\nhex.\n\nIf *str* is not passed in, it will be 4 randomly generated bytes\nconverted into 8 hexadecimal characters.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Funique-slug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpm%2Funique-slug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Funique-slug/lists"}