{"id":16581769,"url":"https://github.com/kaushalmodi/baser","last_synced_at":"2026-06-16T20:31:57.272Z","repository":{"id":77541884,"uuid":"465941015","full_name":"kaushalmodi/baser","owner":"kaushalmodi","description":"Emacs-Lisp Library for converting to and from Decimal, Hexadecimal and Binary numbers","archived":false,"fork":false,"pushed_at":"2022-03-07T21:09:04.000Z","size":115,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-09T10:02:53.865Z","etag":null,"topics":["binary","conversion","decimal","emacs","emacs-lisp","hexadecimal","numbers"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaushalmodi.png","metadata":{"files":{"readme":"README.org","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,"zenodo":null}},"created_at":"2022-03-04T01:26:45.000Z","updated_at":"2025-02-20T01:19:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e7ac3ef-cf3e-4821-a4af-73b10e09086f","html_url":"https://github.com/kaushalmodi/baser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kaushalmodi/baser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fbaser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fbaser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fbaser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fbaser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaushalmodi","download_url":"https://codeload.github.com/kaushalmodi/baser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fbaser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34423214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["binary","conversion","decimal","emacs","emacs-lisp","hexadecimal","numbers"],"created_at":"2024-10-11T22:29:50.085Z","updated_at":"2026-06-16T20:31:57.228Z","avatar_url":"https://github.com/kaushalmodi.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+title: Emacs-Lisp Library for converting to and from Decimal, Hexadecimal and Binary numbers\n#+author: Kaushal Modi\n\n[[https://github.com/kaushalmodi/baser/actions][https://github.com/kaushalmodi/baser/actions/workflows/test.yml/badge.svg]] [[https://www.gnu.org/licenses/gpl-3.0][https://img.shields.io/badge/License-GPL%20v3-blue.svg]]\n\n* Installation\nClone this repo, have ~baser.el~ in the ~load-path~ and ~(require\n'baser)~.\n* General Usage\n** Interactive\nFunctions called using ~M-x~ or key bindings.\n*** With region selected\n1. Select a region in which you want to convert all the numbers.\n2. Run ~\u003cconversion function\u003e~ interactively.\n*** Without region selected\n1. Run ~\u003cconversion function\u003e~ interactively.\n2. Type the number you want to convert.\n** Non-interactive\nCall ~eval-expression~ (bound to ~M-:~ by default) and type the elisp\nexpression of the conversion function.\n\n- Examples ::\n  #+begin_src emacs-lisp\n  (baser-dec-to-hex 100)       ;; =\u003e \"00000064\"\n  (baser-dec-to-hex \"8'd55\")   ;; =\u003e \"37\"\n  (baser-dec-to-hex \"-8'd55\")  ;; =\u003e \"c9\"\n\n  (baser-hex-to-dec \"0x100\")   ;; =\u003e 256\n  (baser-hex-to-dec \"12'hfff\") ;; =\u003e -1\n  (baser-hex-to-dec \"16'hfff\") ;; =\u003e 4095\n\n  (baser-hex-to-bin \"0xabc\")   ;; =\u003e \"1010_1011_1100\"\n\n  (baser-bin-to-hex \"4'b1101\") ;; =\u003e \"d\"\n\n  (baser-dec-to-bin \"4'd3\")    ;; =\u003e \"0011\"\n  (baser-dec-to-bin \"-8'd3\")   ;; =\u003e \"1111_1101\"\n\n  (baser-bin-to-dec \"1111\")    ;; =\u003e 15\n  (baser-bin-to-dec \"4'b1111\") ;; =\u003e -1\n  (baser-bin-to-dec \"5'b1111\") ;; =\u003e 15\n  #+end_src\n* Conversions\n|-----------------------+-------------+--------------------|\n| From Base             | To Base     | Function           |\n|-----------------------+-------------+--------------------|\n| 10 (number or string) | 16 (string) | ~baser-dec-to-hex~ |\n| 16 (string)           | 10 (number) | ~baser-hex-to-dec~ |\n| 16 (string)           | 2 (string)  | ~baser-hex-to-bin~ |\n| 2 (string)            | 16 (string) | ~baser-bin-to-hex~ |\n| 10 (number or string) | 2 (string)  | ~baser-dec-to-bin~ |\n| 2 (string)            | 10 (number) | ~baser-bin-to-dec~ |\n|-----------------------+-------------+--------------------|\n* Development\n** Running Tests\n*** Run all tests\n#+begin_src shell\nmake test\n#+end_src\n*** Run tests matching a specific string\nRun ~make test MATCH=\u003cstring\u003e~. For example, to run all tests where\nthe name matches \"hex-to-dec\" completely or partially, run:\n\n#+begin_src shell\nmake test MATCH=hex-to-dec\n#+end_src\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaushalmodi%2Fbaser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaushalmodi%2Fbaser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaushalmodi%2Fbaser/lists"}