{"id":18256167,"url":"https://github.com/serapath/b-buf-b","last_synced_at":"2025-04-08T22:26:58.104Z","repository":{"id":66204093,"uuid":"274537311","full_name":"serapath/b-buf-b","owner":"serapath","description":"base-x to bytesbuffer to base-x (x=2,8,10,16,32,36,64) https://www.npmjs.com/package/b-buf-b","archived":false,"fork":false,"pushed_at":"2020-06-24T00:46:07.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-25T11:20:20.490Z","etag":null,"topics":["base10","base16","base2","base32","base36","base64","base8","basex","binary","buffer","bytes","decimal","decode","decoding","deserialize","encode","encoding","hex","serialize","transcode"],"latest_commit_sha":null,"homepage":"https://serapath.github.io/b-buf-b/","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/serapath.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":"2020-06-24T00:28:30.000Z","updated_at":"2020-06-24T00:47:09.000Z","dependencies_parsed_at":"2023-02-20T21:46:05.686Z","dependency_job_id":null,"html_url":"https://github.com/serapath/b-buf-b","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"789909ec27f6f08fd135dc4e09a085019953a8ff"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fb-buf-b","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fb-buf-b/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fb-buf-b/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fb-buf-b/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serapath","download_url":"https://codeload.github.com/serapath/b-buf-b/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247937214,"owners_count":21021214,"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":["base10","base16","base2","base32","base36","base64","base8","basex","binary","buffer","bytes","decimal","decode","decoding","deserialize","encode","encoding","hex","serialize","transcode"],"created_at":"2024-11-05T10:20:17.116Z","updated_at":"2025-04-08T22:26:58.081Z","avatar_url":"https://github.com/serapath.png","language":"JavaScript","readme":"# b-buf-b\nbase-x to bytesbuffer to base-x (x=2,8,10,16,32,36,64)\n\nhttps://www.npmjs.com/package/b-buf-b\n\nhttps://serapath.github.io/b-buf-b/\n\n# use\n`npm install b-buf-b`\n```js\nconst {\n  base2string_to_bytebuffer,\n  bytebuffer_to_base2string,\n  base8string_to_bytebuffer,\n  bytebuffer_to_base8string,\n  base10input_to_bytebuffer,\n  bytebuffer_to_base10bigint,\n  base16string_to_bytebuffer,\n  bytebuffer_to_base16string,\n  base32string_to_bytebuffer,\n  bytebuffer_to_base32string,\n  base36string_to_bytebuffer,\n  bytebuffer_to_base36string,\n  base64string_to_bytebuffer,\n  bytebuffer_to_base64string,\n} = require('b-buf-b')\n\nconst randombytes = require('randombytes')\n\nconst ee = randombytes(7)\n// BASE 2\nconst $b2 = bytebuffer_to_base2string(ee)\nconst $buf2 = base2string_to_bytebuffer($b2)\n// BASE 8\nconst $b8 = bytebuffer_to_base8string(ee)\nconst $buf8 = base8string_to_bytebuffer($b8)\n// BASE 10 (bigint)\nconst $b10 = bytebuffer_to_base10bigint(ee)\nconst $buf10 = base10input_to_bytebuffer($b10)\n// BASE 16\nconst $b16 = bytebuffer_to_base16string(ee)\nconst $buf16 = base16string_to_bytebuffer($b16)\n// BASE 32\nconst $b32 = bytebuffer_to_base32string(ee)\nconst $buf32 = base32string_to_bytebuffer($b32)\n// BASE 36\nconst $b36 = bytebuffer_to_base36string(ee)\nconst $buf36 = base36string_to_bytebuffer($b36)\n// BASE 64\nconst $b64 = bytebuffer_to_base64string(ee)\nconst $buf64 = base64string_to_bytebuffer($b64)\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fb-buf-b","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserapath%2Fb-buf-b","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fb-buf-b/lists"}