{"repo":"dawsbot/satoshi-bitcoin","free":true,"listed":false,"github":"https://github.com/dawsbot/satoshi-bitcoin","clone":"git clone https://github.com/dawsbot/satoshi-bitcoin.git","description":"Convert precisely between Satoshi and Bitcoin","language":"JavaScript","stars":42,"topics":["bitcoin","crypto","satoshi"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"satoshi-bitcoin npm module to convert between Satoshi and Bitcoin with lightweight precision . The Problem Install Usage Node.js Web Or download it with npm install --save satoshi-bitcoin and reference it as: Error Handling API sb.toSatoshi(number string) sb.toBitcoin(number string) TypeScript definitions are included — both functions accept a number or string and return a number . FAQ - What is a Satoshi? - Satoshi is to Bitcoin as pennies are to the dollar. Except that there are 100,000,000 Satoshi in one Bitcoin. - Why do I need a module when I can just divide or multiply by 100,000,000? - See here - Floating point errors are a problem. So satoshi-bitcoin uses a tiny bignum library (big.js) to ensure accurate conversions! Tests License MIT © Dawson Botsford","default_branch":null,"files":null,"tree":[],"storefront":"/r/dawsbot","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dawsbot/satoshi-bitcoin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}