{"_id":"evm-bn","_rev":"6-67c637550dec4390168f6835be4a9d7f","name":"evm-bn","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"evm-bn","description":"Convert fixed-point numbers to ethers big numbers and vice-versa","version":"1.0.0","author":{"name":"Paul Razvan Berg","url":"https://paulrberg.com"},"dependencies":{"@ethersproject/bignumber":"^5.4.2","from-exponential":"^1.1.1"},"devDependencies":{"@commitlint/cli":"^13.1.0","@commitlint/config-conventional":"^13.1.0","@istanbuljs/nyc-config-typescript":"^1.0.1","@types/mocha":"^9.0.0","@types/mocha-each":"^2.0.0","@types/node":"^16.10.1","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","earljs":"^0.1.10","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","husky":"^7.0.2","lint-staged":"^11.1.2","mocha":"^9.1.2","mocha-each":"^2.0.1","nyc":"^15.1.0","pinst":"^2.1.6","prettier":"^2.4.1","shx":"^0.3.3","source-map-support":"^0.5.20","ts-node":"^10.2.1","typescript":"~4.4.3"},"keywords":["bignumber","blockchain","ethereum","ethers","evm","number-formatting"],"license":"Unlicense","main":"./dist/index.js","peerDependencies":{"@ethersproject/bignumber":"^5.4.2"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc --build ./tsconfig.prod.json","clean":"shx rm -rf ./coverage ./dist","coverage":"yarn nyc --nycrc-path ./.nycrc.yaml mocha","lint":"yarn lint:ts && yarn prettier:check && yarn typecheck","lint:ts":"eslint --config ./.eslintrc.yaml --ignore-path ./.eslintignore --ext .ts .","_postinstall":"husky install","postpublish":"pinst --enable","prepack":"yarn build","prepublishOnly":"pinst --disable","prettier":"prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,ts}\"","prettier:check":"prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,ts}\"","test":"mocha --config ./.mocharc.yaml","typecheck":"tsc --incremental false --noEmit"},"types":"./dist/index.d.ts","gitHead":"81ca57eb142afbfd74f0e2256543178b6711f8b1","_id":"evm-bn@1.0.0","_nodeVersion":"16.6.1","_npmVersion":"7.23.0","dist":{"integrity":"sha512-cbIFpbIB73cYP7CXJFnrabLuSaIQSPXW9VpDWgpro7hrEeAdcvMhSThmLcI+b36o2IjwWWPBVMBzPWKq7j5xhA==","shasum":"2809869b6d168c7343d31f7f8ae811f43cf65de3","tarball":"https://registry.npmjs.org/evm-bn/-/evm-bn-1.0.0.tgz","fileCount":14,"unpackedSize":12715,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUKV/7mEr/JDWul0KR8rzzpvL8UPk81IYmAR3huMFiSwIhANhS86t8TinnkSZ5+trBr+OAzntinneMd8BNCiS1oMLn"}]},"_npmUser":{"name":"paulrberg","email":"hello@paulrberg.com"},"directories":{},"maintainers":[{"name":"paulrberg","email":"hello@paulrberg.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/evm-bn_1.0.0_1632781696685_0.5865304308771491"},"_hasShrinkwrap":false},"1.0.1":{"name":"evm-bn","description":"Convert fixed-point numbers to ethers big numbers and vice-versa","version":"1.0.1","author":{"name":"Paul Razvan Berg","url":"https://paulrberg.com"},"dependencies":{"@ethersproject/bignumber":"^5.4.2","from-exponential":"^1.1.1"},"devDependencies":{"@commitlint/cli":"^13.1.0","@commitlint/config-conventional":"^13.1.0","@istanbuljs/nyc-config-typescript":"^1.0.1","@types/mocha":"^9.0.0","@types/mocha-each":"^2.0.0","@types/node":"^16.10.1","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","earljs":"^0.1.10","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","husky":"^7.0.2","lint-staged":"^11.1.2","mocha":"^9.1.2","mocha-each":"^2.0.1","nyc":"^15.1.0","pinst":"^2.1.6","prettier":"^2.4.1","shx":"^0.3.3","source-map-support":"^0.5.20","ts-node":"^10.2.1","typescript":"~4.4.3"},"keywords":["bignumber","blockchain","ethereum","ethers","evm","number-formatting"],"license":"Unlicense","main":"./dist/index.js","peerDependencies":{"@ethersproject/bignumber":"^5.4.2"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc --build ./tsconfig.prod.json","clean":"shx rm -rf ./coverage ./dist","coverage":"yarn nyc --nycrc-path ./.nycrc.yaml mocha","lint":"yarn lint:ts && yarn prettier:check && yarn typecheck","lint:ts":"eslint --config ./.eslintrc.yaml --ignore-path ./.eslintignore --ext .ts .","_postinstall":"husky install","postpublish":"pinst --enable","prepack":"yarn build","prepublishOnly":"pinst --disable","prettier":"prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,ts}\"","prettier:check":"prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,ts}\"","test":"mocha --config ./.mocharc.yaml","typecheck":"tsc --incremental false --noEmit"},"types":"./dist/index.d.ts","gitHead":"dbf0193cbfcad7a4fbc34a86e788a56f91e89ceb","_id":"evm-bn@1.0.1","_nodeVersion":"16.6.1","_npmVersion":"7.23.0","dist":{"integrity":"sha512-JGPfpc3WYDSK+HRGGqytiB5Cu5FTdZiZELD00weTRYEvq19tsfLKep5NCW7RrmwskCusUDBlAL6+7AbKoVBdSQ==","shasum":"a8171172d53115761521b6ed020694b923607d1b","tarball":"https://registry.npmjs.org/evm-bn/-/evm-bn-1.0.1.tgz","fileCount":14,"unpackedSize":12811,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeLRWdevhnNmFl0RBQ65C/5zNK+4Ac7jGf/3I51QfnaAIhAIJGwpHd58eQWS47U+oNXgm6ZQ8KIq5TPo+15+QCGldJ"}]},"_npmUser":{"name":"paulrberg","email":"hello@paulrberg.com"},"directories":{},"maintainers":[{"name":"paulrberg","email":"hello@paulrberg.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/evm-bn_1.0.1_1632883406180_0.03667297600452524"},"_hasShrinkwrap":false},"1.1.0":{"name":"evm-bn","description":"Convert fixed-point numbers to ethers big numbers and vice-versa","version":"1.1.0","author":{"name":"Paul Razvan Berg","url":"https://paulrberg.com"},"dependencies":{"@ethersproject/bignumber":"^5.5.0","from-exponential":"^1.1.1"},"devDependencies":{"@commitlint/cli":"^13.2.1","@commitlint/config-conventional":"^13.2.0","@istanbuljs/nyc-config-typescript":"^1.0.1","@types/mocha":"^9.0.0","@types/mocha-each":"^2.0.0","@types/node":"^16.11.6","@typescript-eslint/eslint-plugin":"^5.2.0","@typescript-eslint/parser":"^5.2.0","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","earljs":"^0.1.10","eslint":"^8.1.0","eslint-config-prettier":"^8.3.0","husky":"^7.0.4","lint-staged":"^11.2.5","mocha":"^9.1.3","mocha-each":"^2.0.1","nyc":"^15.1.0","pinst":"^2.1.6","prettier":"^2.4.1","shx":"^0.3.3","source-map-support":"^0.5.20","ts-node":"^10.4.0","typescript":"^4.4.4"},"keywords":["bignumber","blockchain","ethereum","ethers","evm","number-formatting"],"license":"Unlicense","main":"./dist/index.js","peerDependencies":{"@ethersproject/bignumber":"^5.5.0"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc --build ./tsconfig.prod.json","clean":"shx rm -rf ./coverage ./dist","coverage":"yarn nyc --nycrc-path ./.nycrc.yaml mocha","lint":"yarn lint:ts && yarn prettier:check && yarn typecheck","lint:ts":"eslint --config ./.eslintrc.yaml --ignore-path ./.eslintignore --ext .ts .","_postinstall":"husky install","postpublish":"pinst --enable","prepack":"yarn build","prepublishOnly":"pinst --disable","prettier":"prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,ts}\"","prettier:check":"prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,ts}\"","test":"mocha --config ./.mocharc.yaml","typecheck":"tsc --incremental false --noEmit"},"types":"./dist/index.d.ts","gitHead":"d10d93b850450af12e132ce90a6d14375b3deef3","_id":"evm-bn@1.1.0","_nodeVersion":"16.6.1","_npmVersion":"7.23.0","dist":{"integrity":"sha512-P/z/VQE+hsubLC5IE56EchNfVm2rOaorOsJGKxHx+/2jXwjF6n7H34XilmZtSosBnzFEjL1b8qAtWRxZCyp/MQ==","shasum":"450799b738bb79c6fa64b335ba655ea7d6c287e9","tarball":"https://registry.npmjs.org/evm-bn/-/evm-bn-1.1.0.tgz","fileCount":20,"unpackedSize":15784,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDcSRudz9ICqI91Z0V5mSw2T9lClNxKVwf6xybHmo5gwAiEA342YdVaoMOPpV7rCe1ZkM1HT6QL2QP2emaILyNIXgfI="}]},"_npmUser":{"name":"paulrberg","email":"hello@paulrberg.com"},"directories":{},"maintainers":[{"name":"paulrberg","email":"hello@paulrberg.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/evm-bn_1.1.0_1635259825748_0.6051102421356065"},"_hasShrinkwrap":false},"1.1.1":{"name":"evm-bn","description":"Convert fixed-point numbers to ethers big numbers and vice-versa","version":"1.1.1","author":{"name":"Paul Razvan Berg","url":"https://paulrberg.com"},"dependencies":{"@ethersproject/bignumber":"^5.5.0","from-exponential":"^1.1.1"},"devDependencies":{"@commitlint/cli":"^13.2.1","@commitlint/config-conventional":"^13.2.0","@istanbuljs/nyc-config-typescript":"^1.0.1","@types/mocha":"^9.0.0","@types/mocha-each":"^2.0.0","@types/node":"^16.11.6","@typescript-eslint/eslint-plugin":"^5.2.0","@typescript-eslint/parser":"^5.2.0","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","earljs":"^0.1.10","eslint":"^8.1.0","eslint-config-prettier":"^8.3.0","husky":"^7.0.4","lint-staged":"^11.2.5","mocha":"^9.1.3","mocha-each":"^2.0.1","nyc":"^15.1.0","pinst":"^2.1.6","prettier":"^2.4.1","shx":"^0.3.3","source-map-support":"^0.5.20","ts-node":"^10.4.0","typescript":"^4.4.4"},"keywords":["bignumber","blockchain","ethereum","ethers","evm","number-formatting"],"license":"Unlicense","main":"./dist/index.js","peerDependencies":{"@ethersproject/bignumber":"5.x"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc --build ./tsconfig.prod.json","clean":"shx rm -rf ./coverage ./dist","coverage":"yarn nyc --nycrc-path ./.nycrc.yaml mocha","lint":"yarn lint:ts && yarn prettier:check && yarn typecheck","lint:ts":"eslint --config ./.eslintrc.yaml --ignore-path ./.eslintignore --ext .ts .","_postinstall":"husky install","postpublish":"pinst --enable","prepack":"yarn build","prepublishOnly":"pinst --disable","prettier":"prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,ts}\"","prettier:check":"prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,ts}\"","test":"mocha --config ./.mocharc.yaml","typecheck":"tsc --incremental false --noEmit"},"types":"./dist/index.d.ts","gitHead":"7458d221960d7df5198589faf1b1f7f4f2216003","_id":"evm-bn@1.1.1","_nodeVersion":"16.6.1","_npmVersion":"7.23.0","dist":{"integrity":"sha512-Ou+Y5WgoUnjRZjXYpKBTs3orakrpCw6rvj1jiOp2e1kBLVxpnxDywlO1N6hrCbYguPbFlbEWqo0OLzuFXp+UDw==","shasum":"ebb0f4ad50294ff5920b0bef5371023ff57a735b","tarball":"https://registry.npmjs.org/evm-bn/-/evm-bn-1.1.1.tgz","fileCount":20,"unpackedSize":15969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2qYPCRA9TVsSAnZWagAAEj4P+wc4RXjpadlNw/FjE8sE\nGgXdWv1FOrB0MY+6xWfmfACvjv7OpP0kUIOC+77FDJ89nRWsnaQWUeO59Ycw\nfd50mqtLs9xycA/X4/nznQg1oPgjy07Mzl7MmFF4dy+z84F4SA8bsjhfl50n\nWAcwtvsFq+IFQPL7jnQST6YqSZ74OQ2zYJrUhZYujVxkVZ8Vlfx3z4m5BLmC\nP1An6wIVfQaWzcU8e+m27uYnwYs5PDL2AiL3zi7wb3OmhbBaWhy3eeQTNdsC\ntqfRn3qFTesC9aVoMvUhnjKa/YWAAckOPGSUyajfDfzi6n0g0aM2V37Y1pB8\nl4sv/L0qYPVsR+hrHttsx0WJ0qFEbuXUhIvo1y5YlKik4yctTorjwCMYyN20\nDhEZU6Dg/qQBzIhNLmBpEjlex/FuL6Y2t8z8+rVVN9qBlab/lG+cp6WwNhN3\nHr0Cc+3Jol/j/PnvTcyCUo0etxbQPN5/g/lNDF65Q0GYC2AMTu+9nvIf7oyF\nDEsv2cKes1SxfRC2EvKmx+ULvFSTRMXZYoEMvhmy0tP9yV3XunyWSrOUGg6N\nybzEIX4Ilx/i4QWXc43Fx+A44Sd5exYFQooDUSHcGqvdZ63JmYlC+4Gh0v0f\n2ecyNYpW+wI1zyYgOR+B1VNnut2R3wYXnCLVPMUEKsMM8zq6rLNJ2NtaqfB/\ngO1z\r\n=O+Js\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4pj5rtVDBpslUpot7Xe+Q5OW5IHNZpqTuMrvuwmyD1AiAA9gI4XQJtVvKO1qjuL5P84aVUgl8V2lBJaAOmDIv2CQ=="}]},"_npmUser":{"name":"paulrberg","email":"hello@paulrberg.com"},"directories":{},"maintainers":[{"name":"paulrberg","email":"hello@paulrberg.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/evm-bn_1.1.1_1635359450814_0.7776474987025486"},"_hasShrinkwrap":false},"1.1.2":{"name":"evm-bn","description":"Convert fixed-point numbers to ethers big numbers and vice-versa","version":"1.1.2","author":{"name":"Paul Razvan Berg","url":"https://paulrberg.com"},"dependencies":{"@ethersproject/bignumber":"^5.5.0","from-exponential":"^1.1.1"},"devDependencies":{"@commitlint/cli":"^13.2.1","@commitlint/config-conventional":"^13.2.0","@istanbuljs/nyc-config-typescript":"^1.0.1","@types/mocha":"^9.0.0","@types/mocha-each":"^2.0.0","@types/node":"^16.11.6","@typescript-eslint/eslint-plugin":"^5.2.0","@typescript-eslint/parser":"^5.2.0","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","earljs":"^0.1.10","eslint":"^8.1.0","eslint-config-prettier":"^8.3.0","husky":"^7.0.4","lint-staged":"^11.2.5","mocha":"^9.1.3","mocha-each":"^2.0.1","nyc":"^15.1.0","pinst":"^2.1.6","prettier":"^2.4.1","shx":"^0.3.3","source-map-support":"^0.5.20","ts-node":"^10.4.0","typescript":"^4.4.4"},"keywords":["bignumber","blockchain","ethereum","ethers","evm","javascript","number-formatting"],"license":"MIT","main":"./dist/index.js","packageManager":"yarn@3.2.2","peerDependencies":{"@ethersproject/bignumber":"5.x"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc --build \"./tsconfig.prod.json\"","clean":"shx rm -rf ./coverage ./dist","coverage":"yarn nyc --nycrc-path \"./.nycrc.yml\" mocha","lint":"yarn lint:ts && yarn prettier:check && yarn typecheck","lint:ts":"eslint --config \"./.eslintrc.yml\" --ignore-path \"./.eslintignore\" --ext .ts .","_postinstall":"husky install","postpublish":"pinst --enable","prepack":"yarn build","prepublishOnly":"pinst --disable","prettier":"prettier --config \"./.prettierrc.yml\" --write \"**/*.{js,json,md,ts,yml}\"","prettier:check":"prettier --check --config \"./.prettierrc.yml\" \"**/*.{js,json,md,ts,yml}\"","test":"mocha --config \"./.mocharc.yml\"","typecheck":"tsc --incremental false --noEmit"},"types":"./dist/index.d.ts","gitHead":"03cb2024a437a71b188a6c229bc416ee8fe21344","_id":"evm-bn@1.1.2","_nodeVersion":"16.15.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-Lq8CT1EAjSeN+Yk0h1hpSwnZyMA4Xir6fQD4vlStljAuW2xr7qLOEGDLGsTa9sU2e40EYIumA4wYhMC/e+lyKw==","shasum":"0bfd19d13b18765eac6bdea51d286266cfeab2bc","tarball":"https://registry.npmjs.org/evm-bn/-/evm-bn-1.1.2.tgz","fileCount":16,"unpackedSize":13591,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZRr3IbU8hcsVWyTYl9xWM9bmjk8rOTFnyT19XLkoShAiEAiFSkwJDO8ACQlgWj6+qtY0xqJI1vEjQNQWpK9x0i0fs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi39LKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7uBAAjnijnns+6uNEoCQHElnvKsBoYi06e3eXo7621l/d6wetxcVj\r\ny8+ddovjaAqEYxAesTNbIcVOUH5nivvFpOQYPp/Vu5m/PvdcXY8DnM26o11X\r\nTSKSk+uVZTpPMpgcEHEmbKFto1eYJma3qd3qThPffeVKfkwx+mBkM8tmHbBZ\r\niHWd5YaOBPJ0t+DXCiW/4M7RKuPDhrYCFGe9HEIkWsQsxXrOEN25q6Zgcwo0\r\ng6otkUh3c634b9SjlCgiyb+t/0F/OuCULbDZYBcWJ6gcHDgRB3kz6LVHE+Wo\r\nTpQOIdyG/1yrq86EwDd88i89JwvRfQwyOrvdONyXPgauWaOJMlrruQIRwvvD\r\nT+q+/JBCKMLhWgYsRQVomwvKCWy84/3wyFMLZcI6ZtH8yYjjmwpeWlKwu11U\r\n+pxJO+rGjSP9vOuZlfaqzSvLBr1n892nXU0moWzVDmjkoMsh/GuIUdThzMRg\r\nPBDvHE46PQybPShuFlxof2GY15aR+3TmVO+bkpP8texUuGs0iy2XOvltYl71\r\nUokbCPJ/+G968VDy9FhlKb6r2hF2Hvt81seHeNc9oJx0RUWM7spY6eBug2tl\r\nhY3G5QDUcA44A/TMdg9pI2/zO3A0fDYu7jN8EAA7n2LFKKXtP6Kk9EjpdmEk\r\ncV1+OHauH+7Hncx5wYPovniffrfMlEjiltA=\r\n=S69y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"paulrberg","email":"hello@paulrberg.com"},"directories":{},"maintainers":[{"name":"paulrberg","email":"hello@paulrberg.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/evm-bn_1.1.2_1658835658091_0.36031535736552844"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-27T22:28:16.629Z","1.0.0":"2021-09-27T22:28:16.840Z","modified":"2022-07-26T11:40:58.375Z","1.0.1":"2021-09-29T02:43:26.352Z","1.1.0":"2021-10-26T14:50:25.892Z","1.1.1":"2021-10-27T18:30:50.937Z","1.1.2":"2022-07-26T11:40:58.260Z"},"maintainers":[{"name":"paulrberg","email":"hello@paulrberg.com"}],"description":"Convert fixed-point numbers to ethers big numbers and vice-versa","keywords":["bignumber","blockchain","ethereum","ethers","evm","javascript","number-formatting"],"author":{"name":"Paul Razvan Berg","url":"https://paulrberg.com"},"license":"MIT","readme":"# Evm Bn [![GitHub Actions][gha-badge]][gha] [![Coverage Status][coveralls-badge]][coveralls] [![Styled with Prettier][prettier-badge]][prettier] [![License: MIT][license-badge]][license]\n\n[gha]: https://github.com/paulrberg/evm-bn/actions\n[gha-badge]: https://github.com/paulrberg/evm-bn/actions/workflows/ci.yml/badge.svg\n[coveralls]: https://coveralls.io/github/paulrberg/evm-bn\n[coveralls-badge]: https://coveralls.io/repos/github/paulrberg/evm-bn/badge.svg?branch=main\n[prettier]: https://prettier.io\n[prettier-badge]: https://img.shields.io/badge/Code_Style-Prettier-ff69b4.svg\n[license]: https://opensource.org/licenses/MIT\n[license-badge]: https://img.shields.io/badge/License-MIT-blue.svg\n\nConvert fixed-point numbers to [ethers](https://github.com/ethers-io/ethers.js) big numbers and vice-versa. This is\nuseful for [EVM](https://ethereum.org)-related projects, since 1 ETH is 1e18 wei.\n\n- Accepts scientific notation.\n- Limits the precision to 78 digits.\n- Enforces 60 integer digits and 18 fractional digits.\n- Designed to be used alongside [@ethersproject/bignumber](https://github.com/ethers-io/ethers.js/tree/master/packages/bignumber).\n- Slices the fractional digits automatically at position `n + 1` and above, with `n` the number of decimals, rounding down in the process.\n\n## Install\n\nWith yarn:\n\n```sh\n$ yarn add evm-bn\n```\n\nOr npm:\n\n```sh\n$ npm install evm-bn\n```\n\n## Usage\n\n### To Bn\n\n```ts\nimport type { BigNumber } from \"@ethersproject/bignumber\";\nimport { toBn } from \"evm-bn\";\n\n// 3141500000000000000\nconst foo: BigNumber = toBn(\"3.1415\");\n\n// 115792089237316195423570985008687907853269984665640564039457584007913129639935\nconst bar: BigNumber = toBn(\"115792089237316195423570985008687907853269984665640564039457.584007913129639935\");\n\n// 100000000000000\nconst baz: BigNumber = toBn(\"100e6\", 6);\n```\n\n### From Bn\n\n```ts\nimport type { BigNumber } from \"@ethersproject/bignumber\";\nimport { fromBn } from \"evm-bn\";\n\n// 3.1415\nconst foo: BigNumber = fromBn(BigNumber.from(\"3141500000000000000\"));\n\n// 115792089237316195423570985008687907853269984665640564039457.584007913129639935\nconst bar: BigNumber = fromBn(\n  BigNumber.from(\"115792089237316195423570985008687907853269984665640564039457584007913129639935\"),\n);\n\n// 100000000\nconst baz: BigNumber = fromBn(BigNumber.from(\"100000000000000\"), 6);\n```\n\n## Contributing\n\nFeel free to dive in! [Open](https://github.com/paulrberg/evm-bn/issues/new) an issue, [start](https://github.com/paulrberg/evm-bn/discussions/new) a discussion or submit a PR.\n\n### Set Up\n\nClone the repositories and install the dependencies:\n\n```bash\n$ yarn install\n```\n\nNow you can start making changes.\n\n## License\n\n[MIT](./LICENSE.md) © Paul Razvan Berg\n","readmeFilename":"README.md"}