{"id":16125577,"url":"https://github.com/semibran/radix","last_synced_at":"2025-04-06T13:12:46.135Z","repository":{"id":130492138,"uuid":"98491593","full_name":"semibran/radix","owner":"semibran","description":"Convert whole numbers to any base","archived":false,"fork":false,"pushed_at":"2017-07-27T04:03:42.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T18:59:21.179Z","etag":null,"topics":["base","convert","numbers","radix"],"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/semibran.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}},"created_at":"2017-07-27T03:51:53.000Z","updated_at":"2017-07-27T03:53:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b013ce0-105b-4136-bdf9-3eba7098953b","html_url":"https://github.com/semibran/radix","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/semibran%2Fradix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fradix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fradix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fradix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semibran","download_url":"https://codeload.github.com/semibran/radix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485291,"owners_count":20946398,"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":["base","convert","numbers","radix"],"created_at":"2024-10-09T21:30:01.437Z","updated_at":"2025-04-06T13:12:46.097Z","avatar_url":"https://github.com/semibran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# radix\n\u003e Convert whole numbers to any base\n\n## usage\n\n### `encode(digits, number) -\u003e string`\nEncodes `number` into a `string` using `digits`.\n```js\n\u003e var binary = [\"0\", \"1\"]\n\u003e encode(binary, 255)\n\"11111111\"\n```\n\n### `decode(digits, string) -\u003e number`\nDecodes `string` back into a `number` using `digits`.\n```js\n\u003e var hex = \"0123456789ABCDEF\"\n\u003e decode(hex, \"DEADBEEF\")\n3735928559\n```\n\nReturns `NaN` if `string` contains a character not included in `digits`.\n```js\n\u003e decode(hex, \"GOTEM\")\nNaN\n```\n\n## license\n[MIT](https://opensource.org/licenses/MIT) © [Brandon Semilla](https://git.io/semibran)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fradix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemibran%2Fradix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fradix/lists"}