{"id":13630724,"url":"https://github.com/gr2m/to-id","last_synced_at":"2025-08-20T22:32:39.555Z","repository":{"id":774259,"uuid":"35762470","full_name":"gr2m/to-id","owner":"gr2m","description":"Normalises strings for comparison or usage as IDs","archived":false,"fork":false,"pushed_at":"2024-06-18T20:48:31.000Z","size":680,"stargazers_count":22,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T23:47:16.159Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gr2m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"gr2m"}},"created_at":"2015-05-17T10:48:48.000Z","updated_at":"2024-06-18T20:48:34.000Z","dependencies_parsed_at":"2024-11-07T01:25:28.019Z","dependency_job_id":"114a7b76-93cb-4c6e-9d29-cc9bc7589ff7","html_url":"https://github.com/gr2m/to-id","commit_stats":{"total_commits":122,"total_committers":8,"mean_commits":15.25,"dds":0.5573770491803278,"last_synced_commit":"57ed30aa7379de7de26d17bae273d2b64846ad84"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fto-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fto-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fto-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fto-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gr2m","download_url":"https://codeload.github.com/gr2m/to-id/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229043271,"owners_count":18011074,"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-08-01T22:01:57.465Z","updated_at":"2024-12-17T14:58:37.090Z","avatar_url":"https://github.com/gr2m.png","language":"JavaScript","funding_links":["https://github.com/sponsors/gr2m"],"categories":["JavaScript"],"sub_categories":[],"readme":"# to-id\n\n\u003e Normalises strings for comparison or usage as IDs\n\n[![Build Status](https://travis-ci.org/gr2m/to-id.svg?branch=master)](https://travis-ci.org/gr2m/to-id)\n[![Coverage Status](https://codecov.io/gh/gr2m/to-id/branch/master/graph/badge.svg)](https://codecov.io/gh/gr2m/to-id)\n[![Greenkeeper badge](https://badges.greenkeeper.io/gr2m/to-id.svg)](https://greenkeeper.io/)\n\n## Usage\n\n```js\ntoId('Inside a $34 smartphone') // inside-a-34-smartphone\ntoId('Kore: a fast web server') // kore-a-fast-webserver\ntoId(' L. (YC S15) - Is Hiring ') // l-yc-s15-is-hiring\ntoId('안_형_준') // 안-형-준\n```\n\n## Installation\n\nYou can download [to-id.js](https://github.com/gr2m/tree/master/to-id.js)\nand add it to your site using `\u003cscript src=\"to-id.js\"\u003e\u003c/script\u003e`\n\nOr install using [bower](http://bower.io/) for usage in browser:\n\n```\nbower install --save to-id\n```\n\nInstall using [npm](https://npmjs.org/) for node.js or browserify:\n\n```\nnpm install --save to-id\n```\n\n## Test\n\n```\nnpm test\n```\n\nTests are run with [testmate](https://github.com/gr2m/testmate).\nIn order to run them in a browser or through saucelabs,\nset `TEST_CLIENT` accordingly, for example\n\n```\nTEST_CLIENT=selenium:firefox npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fto-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgr2m%2Fto-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fto-id/lists"}