{"id":15010109,"url":"https://github.com/emilindstrom/slugs","last_synced_at":"2025-04-09T21:23:23.701Z","repository":{"id":57549305,"uuid":"176459645","full_name":"emilindstrom/slugs","owner":"emilindstrom","description":"elixir package for generating slugs and extracting id:s","archived":false,"fork":false,"pushed_at":"2019-04-23T19:12:16.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T13:33:49.387Z","etag":null,"topics":["elixir","elixir-library","slug","slug-generator","slugs"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/emilindstrom.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":"2019-03-19T08:14:34.000Z","updated_at":"2023-03-23T14:13:09.000Z","dependencies_parsed_at":"2022-08-27T00:40:19.417Z","dependency_job_id":null,"html_url":"https://github.com/emilindstrom/slugs","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/emilindstrom%2Fslugs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilindstrom%2Fslugs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilindstrom%2Fslugs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilindstrom%2Fslugs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emilindstrom","download_url":"https://codeload.github.com/emilindstrom/slugs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238994292,"owners_count":19564811,"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":["elixir","elixir-library","slug","slug-generator","slugs"],"created_at":"2024-09-24T19:30:18.455Z","updated_at":"2025-02-15T22:31:25.262Z","avatar_url":"https://github.com/emilindstrom.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slugs [![hex.pm version](https://img.shields.io/hexpm/v/slugs.svg)](https://hex.pm/packages/slugs) [![hex.pm downloads](https://img.shields.io/hexpm/dt/slugs.svg)](https://hex.pm/packages/slugs) [![Build Status](https://travis-ci.com/emilindstrom/slugs.svg?branch=master)](https://travis-ci.com/emilindstrom/slugs)\n\n`generate` creates a slug from a combination of two values, preferably a combination of an id and a descriptive string.\n\n`extract_id` grabs the id from the slug.\n\nhttps://hex.pm/packages/slugs\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `slugs` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:slugs, \"~\u003e 0.1.1\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\niex\u003e Slug.generate(1337, \"Lord Of The Rings\")\n\"lord-of-the-rings-1337\"\n\niex\u003e Slug.extract_id(\"lord-of-the-rings-1337\")\n1337\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilindstrom%2Fslugs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femilindstrom%2Fslugs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilindstrom%2Fslugs/lists"}