{"id":16234107,"url":"https://github.com/zackify/react-slug","last_synced_at":"2025-11-09T14:04:39.826Z","repository":{"id":27953225,"uuid":"31446029","full_name":"zackify/react-slug","owner":"zackify","description":"A React component that will turn any input into a URL friendly slug!","archived":false,"fork":false,"pushed_at":"2015-06-04T23:56:33.000Z","size":916,"stargazers_count":23,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T08:21:28.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/zackify.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":"2015-02-28T00:59:33.000Z","updated_at":"2021-07-15T06:32:09.000Z","dependencies_parsed_at":"2022-08-27T00:20:27.155Z","dependency_job_id":null,"html_url":"https://github.com/zackify/react-slug","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Freact-slug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Freact-slug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Freact-slug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Freact-slug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zackify","download_url":"https://codeload.github.com/zackify/react-slug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244453664,"owners_count":20455254,"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-10T13:15:01.656Z","updated_at":"2025-11-09T14:04:34.792Z","avatar_url":"https://github.com/zackify.png","language":"JavaScript","readme":"##React Slug\n![gif demo](https://s3.amazonaws.com/f.cl.ly/items/2N330o430g3g2s2e0S0E/Screen%20Recording%202015-02-27%20at%2005.02%20PM.gif)\n\n##Install\n\n`npm install react-slug`\n\n##Example\n\nIt acts exactly the same as a regular input, the onChange will return the event as a second parameter.\n\n~~~js\n\nimport React from 'react'\nimport Slug from 'react-slug'\n\nexport default class App extends React.Component{\n\n  constructor(){\n    super()\n    this.handleChange = this.handleChange.bind(this)\n  }\n\n  handleChange(event){\n    console.log(event.target.value)\n  }\n\n  render(){\n    return \u003cSlug value=\"this will be slugified\" onChange={this.handleChange} className=\"test\" /\u003e\n  }\n}\n\n~~~\n\n###Rebuilding\n  \n  Run this to view the example in `example/dist`\n\n  npm run build\n\n###Description\n\nThis is a super simple react component that will strip any non alpha-numeric characters for you. It will turn spaces into hyphens. \nThanks to [Jed Watson](http://github.com/jedwatson) for the gulpfile stuff ;)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackify%2Freact-slug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzackify%2Freact-slug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackify%2Freact-slug/lists"}