{"id":19156290,"url":"https://github.com/ess/sluggo","last_synced_at":"2025-07-19T07:05:29.193Z","repository":{"id":12315840,"uuid":"14950708","full_name":"ess/sluggo","owner":"ess","description":"Let's generate some gobbledeygook strings!","archived":false,"fork":false,"pushed_at":"2013-12-06T08:57:45.000Z","size":128,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T20:09:54.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"WebAssembly/design","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ess.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}},"created_at":"2013-12-05T10:35:23.000Z","updated_at":"2013-12-06T16:34:20.000Z","dependencies_parsed_at":"2022-08-29T00:30:34.461Z","dependency_job_id":null,"html_url":"https://github.com/ess/sluggo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fsluggo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fsluggo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fsluggo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fsluggo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ess","download_url":"https://codeload.github.com/ess/sluggo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240241802,"owners_count":19770463,"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-11-09T08:34:00.626Z","updated_at":"2025-02-22T21:42:04.983Z","avatar_url":"https://github.com/ess.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sluggo #\n\nSometimes, we just want a string of quasi-random gobbledeygook to use as\na token of some sort. We may want these strings to be unique (or at least\nsomewhat close to it), or we may just them to be a given length.\n\nThat's what this is for.\n\n## Important Note ##\n\nThis is very much not ready for primetime. I'm only releasing right now so\nas to stop working on it and accept a baseline.\n\n## Install ##\n\nYou can add it to your Gemfile:\n\n    gem 'sluggo'\n\nOr you can do it the hard way:\n\n    gem install sluggo\n\n## Usage ##\n\n```ruby\nrequire 'sluggo'\n\n# Let's get a 6-character random base62 slug\n\nslug = Sluggo::Random.base62(6)\n\n# Heck, let's get a possibly unique 6-character base62 slug\n# This works by passing a block to the rare method. If the block\n# returns true, we assume that the proposed slug is unique and\n# return it. We're going to assume that we're working with a\n# Widget with a .open_key? method that returns true if the \n# supplied key isn't in use.\n\nslug = Sluggo.rare(length: 6) {|slug| Widget.open_key?(slug)}\n```\n\n## License ##\n\nMIT License. Copyright 2013 Ess\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fess%2Fsluggo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fess%2Fsluggo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fess%2Fsluggo/lists"}