{"id":15941494,"url":"https://github.com/harmboschloo/hash-to-string","last_synced_at":"2025-04-03T21:15:54.064Z","repository":{"id":57261632,"uuid":"87588550","full_name":"harmboschloo/hash-to-string","owner":"harmboschloo","description":"Converts an unsigned number into a string given a set of characters.","archived":false,"fork":false,"pushed_at":"2017-04-08T08:49:15.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T03:44:59.537Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harmboschloo.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":"2017-04-07T21:31:25.000Z","updated_at":"2017-04-08T07:18:39.000Z","dependencies_parsed_at":"2022-08-25T06:11:37.278Z","dependency_job_id":null,"html_url":"https://github.com/harmboschloo/hash-to-string","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/harmboschloo%2Fhash-to-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmboschloo%2Fhash-to-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmboschloo%2Fhash-to-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmboschloo%2Fhash-to-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harmboschloo","download_url":"https://codeload.github.com/harmboschloo/hash-to-string/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078864,"owners_count":20879952,"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-07T07:05:02.175Z","updated_at":"2025-04-03T21:15:54.032Z","avatar_url":"https://github.com/harmboschloo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hash-to-string\n\nConverts an unsigned number into a string given a set of characters.\n\n## install\n\n```\nnpm install hash-to-string --save\n```\n\n## example\n\n```\nimport createToString from 'hash-to-string';\n\nconst toAbcString = createToString('abc');\n\ntoAbcString(0); // 'a'\ntoAbcString(1); // 'b'\ntoAbcString(2); // 'c'\ntoAbcString(3); // 'aa'\ntoAbcString(4); // 'ab'\ntoAbcString(5); // 'ac'\ntoAbcString(6); // 'ba'\ntoAbcString(7); // 'bb'\ntoAbcString(8); // 'bc'\ntoAbcString(9); // 'ca'\ntoAbcString(10); // 'cb'\ntoAbcString(11); // 'cc'\ntoAbcString(12); // 'aaa'\ntoAbcString(13); // 'aab'\ntoAbcString(14); // 'aac'\ntoAbcString(15); // 'aba'\n\nconst toAlphabeticString = createToString('abcdefghijklmnopqrstuvwxyz');\n\ntoAlphabeticString(1234567890); // 'cywoqvk'\ntoAlphabeticString(9876501234); // 'aeyfsbxc'\n\nconst toNumberString = createToString('0123456789');\n\ntoNumberString(0); // '0'\ntoNumberString(1); // '1'\ntoNumberString(2); // '2'\ntoNumberString(3); // '3'\ntoNumberString(4); // '4'\ntoNumberString(5); // '5'\ntoNumberString(6); // '6'\ntoNumberString(7); // '7'\ntoNumberString(8); // '8'\ntoNumberString(9); // '9'\ntoNumberString(10); // '00'\ntoNumberString(11); // '01'\ntoNumberString(12); // '02'\ntoNumberString(13); // '03'\ntoNumberString(14); // '04'\ntoNumberString(15); // '05'\ntoNumberString(16); // '06'\ntoNumberString(17); // '07'\ntoNumberString(18); // '08'\ntoNumberString(19); // '09'\ntoNumberString(20); // '10'\ntoNumberString(21); // '11'\ntoNumberString(22); // '12'\ntoNumberString(99); // '89'\ntoNumberString(100); // '90'\n\nconst toAString = createToString('a');\n\ntoAString(0); // 'a'\ntoAString(1); // 'aa'\ntoAString(2); // 'aaa'\ntoAString(3); // 'aaaa'\ntoAString(4); // 'aaaaa'\n\n// negative number\n\ntoAString(-1); // ''\n```\n\n## license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmboschloo%2Fhash-to-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharmboschloo%2Fhash-to-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmboschloo%2Fhash-to-string/lists"}