{"id":16560923,"url":"https://github.com/jb55/bcalc","last_synced_at":"2025-10-28T23:30:21.898Z","repository":{"id":66018131,"uuid":"114515440","full_name":"jb55/bcalc","owner":"jb55","description":"A simple calculator that understands Bitcoin units","archived":false,"fork":false,"pushed_at":"2024-02-01T18:36:35.000Z","size":42,"stargazers_count":9,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T20:45:26.295Z","etag":null,"topics":["bitcoin","calculator","units"],"latest_commit_sha":null,"homepage":null,"language":"C","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/jb55.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}},"created_at":"2017-12-17T06:41:22.000Z","updated_at":"2024-11-12T12:07:53.000Z","dependencies_parsed_at":"2023-03-03T19:45:16.755Z","dependency_job_id":null,"html_url":"https://github.com/jb55/bcalc","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/jb55%2Fbcalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jb55%2Fbcalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jb55%2Fbcalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jb55%2Fbcalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jb55","download_url":"https://codeload.github.com/jb55/bcalc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238737820,"owners_count":19522261,"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":["bitcoin","calculator","units"],"created_at":"2024-10-11T20:30:37.864Z","updated_at":"2025-10-28T23:30:15.584Z","avatar_url":"https://github.com/jb55.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# bcalc\n\n  A simple calculator that understands Bitcoin Units\n\n## Examples\n\n  Basic example\n\n    $ bcalc 1 msat + 2 sats + 3 bits to msats\n    302001 msats\n\n  BTC to satoshis\n\n    $ bcalc 0.02 BTC\n    2000000 sats\n\n  satoshis to millisatoshis (for payment channels), also dont print unit\n\n    $ bcalc --no-unit 100 sat to msats\n    100000\n\n  mBTC + bits to BTC\n\n    $ bcalc 100 mBTC + 20 bits to btc\n    0.10002 BTC\n\n  Division\n\n    $ bcalc 1 BTC / 100 to bits\n    10000 bits\n\n  Multiplication\n\n    $ bcalc '10 mbtc * 30 to bits'\n    300000 bits\n\n  Fiat currencies\n\n    $ bcalc --price 20000 30 usd to bits\n    1500 bits\n\n    $ bcalc --price 16000 780 bits to fiat\n    12.48 usd\n\n  The Bitcoin pizzas\n\n    $ bcalc --price 0.0041 41 usd to btc\n    10000 BTC\n    \n  Chain analysis\n  \n    $ bitcoin-iterate -q --output=%oa --start 0 --end 80000 | sed 's,$, sats to btc,g' | bcalc | sort | uniq -c | sort -nr | head -n5\n    84634\t50 BTC\n    9778\t0.01 BTC\n    7829\t0.05 BTC\n    3064\t5 BTC\n    1326\t0.02 BTC\n\n\n## Install\n\n  If on Ubuntu, check you have the prerequisites to build this package\n\n    $ sudo apt-get install build-essential bison flex\n\n  Build and install\n\n    $ make install\n\n  If you run into errors because your user doesn't have write access to /usr/local/bin then\n\n    $ sudo make install\n\n## Units\n\n  - BTC,\n  - mBTC (milli-bitcoin),\n  - bits (μBTC, micro-bitcoin),\n  - finney,\n  - satoshi (sat),\n  - millisatoshi (msat),\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjb55%2Fbcalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjb55%2Fbcalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjb55%2Fbcalc/lists"}