{"id":22221900,"url":"https://github.com/fabiospampinato/strid","last_synced_at":"2025-07-27T16:31:37.792Z","repository":{"id":63980063,"uuid":"571693387","full_name":"fabiospampinato/strid","owner":"fabiospampinato","description":"Get a unique string identifier for any input value.","archived":false,"fork":false,"pushed_at":"2023-09-24T16:28:51.000Z","size":9,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-20T17:44:32.747Z","etag":null,"topics":["identifier","string","unique"],"latest_commit_sha":null,"homepage":"","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/fabiospampinato.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2022-11-28T17:24:19.000Z","updated_at":"2024-06-26T20:47:30.000Z","dependencies_parsed_at":"2024-10-30T17:02:40.512Z","dependency_job_id":"8208d7d9-93ad-48ef-b277-021431d2262d","html_url":"https://github.com/fabiospampinato/strid","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"6ec94345e01adb951bb4c33b2dc8dd34daf0fe6e"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fstrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fstrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fstrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fstrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/strid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227529295,"owners_count":17784001,"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":["identifier","string","unique"],"created_at":"2024-12-02T23:16:05.062Z","updated_at":"2025-07-27T16:31:37.787Z","avatar_url":"https://github.com/fabiospampinato.png","language":"JavaScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"readme":"# Strid\n\nGet a unique string identifier for any input value.\n\n## Details\n\n- All values that are the same according to `Object.is` will have the same string identifier.\n- All values that are different according to `Object.is` will have different string identifiers.\n- If your engine hasn't implemented [this](https://github.com/tc39/proposal-symbols-as-weakmap-keys) proposal then input symbols will be kept in memory indefinitely.\n\n## Install\n\n```sh\nnpm install strid\n```\n\n## Usage\n\n```ts\nimport strid from 'strid';\n\n// Let's get a unique string identifier for some values\n\nstrid ( null ); // =\u003e 'n';\nstrid ( undefined ); // =\u003e 'u';\nstrid ( true ); // =\u003e 't';\nstrid ( false ); // =\u003e 'f';\nstrid ( 0 ); // =\u003e '0';\nstrid ( -0 ); // =\u003e '-0';\nstrid ( 0n ); // =\u003e '0n';\nstrid ( 'foo' ); // =\u003e 'sfoo';\nstrid ( () =\u003e {} ); // =\u003e 'c1';\nstrid ( () =\u003e {} ); // =\u003e 'c2';\nstrid ( {} ); // =\u003e 'c3';\nstrid ( [] ); // =\u003e 'c4';\nstrid ( Symbol () ); // -\u003e 'c5'\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fstrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fstrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fstrid/lists"}