{"_id":"@bemoje/math-log10-approx","_rev":"5-a6c5f7e1253afd71e58b818424d43481","name":"@bemoje/math-log10-approx","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@bemoje/math-log10-approx","version":"1.0.0","keywords":["approximate","logarithm","base","small","integer","approximated","mathlog10approx"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/math-log10-approx@1.0.0","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-math-log10-approx#readme","bugs":{"url":"https://github.com/bemoje/bemoje-math-log10-approx/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"c074bcd72561a3478825b3b248aef9b24f17d872","tarball":"https://registry.npmjs.org/@bemoje/math-log10-approx/-/math-log10-approx-1.0.0.tgz","fileCount":5,"integrity":"sha512-hYQ+BQ70puHaeeTOgTS6AWOqAYfRSaT5GV1MIL01nwcuV5gcVbLXTKFN+8JcohK80GbFbsJ7X2oP45x+qKt+Gg==","signatures":[{"sig":"MEUCIQCHqzmmTMgIz9t7KPQcSiyQelMNvKIkNqODhHwWAXa1GwIgczKFd9rh3d6L4A1b2w4sEWamNTp8tohbKx3mTcneLrg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqBo7CRA9TVsSAnZWagAAqZIQAI52rMBDx8t0kyBigUST\n0S/hRKhqNyDAdD7qbxUwTuQjlYR5LJWM1D+j0SCVqplz58lDUHcNI+sV8P27\nBaUFfSSPbbXwoGz27CSNSrFgWNdfqhI0WUwI1RGTM8jhzTx2mBWcsWqxxoev\nh90riZ+zDnvxUMUl/16T/kbCdDJcckp7fA4EQDMTrIo9pE52/G3+DOpk+BZ0\nI/G6lTlnLoqBBK+Tkn2n5V31H4dXeXLiunN65UMa00drhlj+FlE+sPUl+eWR\nq9K4SsE0MST+7TczYJX+s5GdxsGooTefYmIYZX9PpUh6QdnBDPssVLPGU9wU\n9dLuoCqP0c3mLQJdVQc2ZWv+pGfEMaf4wkOrikgagj7xF2Rr3QklOku16+wo\nq4dwL3gAw/tcHnE2PtVd7Y2DEccC/6pGA8zSoEpBcSdrjP2BFQsphVdIMz3G\nKuC/csI/u5X0sI4hhVR8aNsjHxeEtS/N0Hug0B++LDmgPOnRC6j7D2xyImmA\nLA1EwaLFfMYG0PtFixe07WrINyoNI3GHSxtGAIJVRHoBsjisGzLXajMCfjoP\nJVoEO/LOpfnhHlx51UOndpy5bLK6HfLn6PDW4l2BTP2Qt+sIExIFrwp/83Qk\ntZGqh7gmxpQDPvTcMORI9Y3zBtAATsERXihHO4c5XJbyqXGZr79Nn/cO1hPq\nTwUD\r\n=hLeZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/math-log10-approx.umd.js","github":{"user":"bemoje"},"module":"dist/math-log10-approx.esm.js","browser":"dist/math-log10-approx.umd.js","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/math-log10-approx.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","start":"node -r esm src/math-log10-approx.js","commit":"npm run repo gitCommit","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/math-log10-approx.example.js","publish":"npm run repo npmPublish","version":"npm run repo version","keywords":"npm run repo keywords","git-create":"rimraf .git && npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-math-log10-approx","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-math-log10-approx.git","type":"git"},"_npmVersion":"6.12.1","description":"Approximate the logarithm base 10 of a small integer.","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/math-pow10-pre-computed":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^25.4.0","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/math-log10-approx_1.0.0_1588075067118_0.29613902422917415","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."},"1.1.0":{"name":"@bemoje/math-log10-approx","version":"1.1.0","keywords":["approximate","logarithm","base","small","integer","approximated","mathlog10approx"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/math-log10-approx@1.1.0","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-math-log10-approx#readme","bugs":{"url":"https://github.com/bemoje/bemoje-math-log10-approx/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"c418d4591262b13894fb7009d4d90adb665d39de","tarball":"https://registry.npmjs.org/@bemoje/math-log10-approx/-/math-log10-approx-1.1.0.tgz","fileCount":5,"integrity":"sha512-UQCl+dCbvSwvklepYrhAalupo8+nRNpmJAhpfhHEXn69Y4HvatViJ1F4kw4hqMDO0CoaNq8BSFhydoe0yUZr6A==","signatures":[{"sig":"MEQCIEZemObPmOV7uYNIJH7r0P/TujuavsopCO53Lo4KeM/9AiAuJlwx5E+Rsk5nK+2217Dp3frLu9YRVCxnyNp2dJcHXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8532,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqBvfCRA9TVsSAnZWagAAH28P/1ksSG4DAxkK0n3PNJYC\nPyN7OZulk3h0NNIxNrP3QLJBLxeHlQyF7C7Aex6zlhc9/lqbtBJwbYGVlPJp\nPYdbuas1uE9HGYGtnwMuI1VIRI1TBmWG/8Fcp6CDBkl1yLSEGFIcmT8rKwY0\nP63nDr+8xzICLxEGSZO6CAg6jmdbUUsxmkhM553LItbsR44xOpDhAcbGNlho\nKnZFLFyJmiaORObF0UBkiXyNj9SsVyRbiJ7o31IUY5z8P9zNYO8FFGR8qDSm\n96GnMaNjRQkQ2VBTac/ALhiZnpUXxfizay4T3y+BGhKe7EoVIDycRV3nus1L\nfZ253pjMcX1v1lvHIm84j1f0p6Ircd0GbBEe40KgISRg5GWP5AB1iX0nEJkJ\nAJgn6MGYohkdfEatCfDXY7qxGtRr2mnShGnXBOcpikVSu7HR20573hL9nziH\niciydV3X2K/fMJf5JuVoicoQfpJMw+3BRPxzd4d71moLDa+s4r4BfXwWUdKk\nmQpBZNtdyuwdjOCZn4DW4R3uRxBS0DmXxapIyUFNwymQrlOeWQEQ/pOQVXYJ\n9ajINST35zKIQUM9D/zPOeH6ec+feEcZewKWZEXMLBMhbfLnBywNdaqfJCqc\nlO0AGCqL5Vxou1+i1+rHP2nNR9Kr6+4zlUA8n+vSfp9raeJgipi0FS+yOWOs\nFj1p\r\n=ECUZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/math-log10-approx.umd.js","github":{"user":"bemoje"},"module":"dist/math-log10-approx.esm.js","browser":"dist/math-log10-approx.umd.js","gitHead":"5d8ce6333e8db1f735cbb0c160ce86db52fc45fe","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/math-log10-approx.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","start":"node -r esm src/math-log10-approx.js","commit":"npm run repo gitCommit","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/math-log10-approx.example.js","publish":"npm run repo npmPublish","version":"npm run repo version","keywords":"npm run repo keywords","git-create":"rimraf .git && npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-math-log10-approx","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-math-log10-approx.git","type":"git"},"_npmVersion":"6.12.1","description":"Approximate the logarithm base 10 of a small integer.","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/assert-args":"^1.0.0","@bemoje/assert-type":"^1.0.0","@bemoje/math-pow10-pre-computed":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^25.4.0","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/math-log10-approx_1.1.0_1588075487263_0.5186467945567892","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."},"1.1.1":{"name":"@bemoje/math-log10-approx","version":"1.1.1","keywords":["approximate","logarithm","base","small","integer","approximated","mathlog10approx"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/math-log10-approx@1.1.1","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-math-log10-approx#readme","bugs":{"url":"https://github.com/bemoje/bemoje-math-log10-approx/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"c0dbbf89246ac28c8c3ea7bd6c290a5607561cd2","tarball":"https://registry.npmjs.org/@bemoje/math-log10-approx/-/math-log10-approx-1.1.1.tgz","fileCount":5,"integrity":"sha512-FX02exb24GT2yQyMprd8DMZwbcVoANi15j0tMKJRkIsinGYFXPqQgsr2WydDPtMCPsbrZahdwxxIx/ocFrD/zA==","signatures":[{"sig":"MEQCIFjiQbr3VPvQGY+jeYKwFv9T8Qpvd4zS+dZiUM33bvMMAiBbpovdS8lyCySHEfXmnoN3mXA6+2FXdrJQ4MPR7qhzYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqsP0CRA9TVsSAnZWagAACkMP/1cjYe7BMzCt84k08c32\nVlwuSHVGfAYAm14ppHBazAPkfAdDfQMLEWcKeikWkK2ZrinM3DIIWOUXQeaS\nsh18I4DQ26pmw0gj9u/eyUlTDUymAZKICiH5EueL+cbT1EO+mjSgsCShC9gp\nNm7otE6vI7+K55rM9DztUUb2ax2rx1K7mn2xQV2C6CiAGnpXW9LUeMTvFbK9\nd+TTiLxckwK/qa45g3/fSnXIAv1H+XvlnJC5qktzuAlOIqIlHw6EzDe5p+pt\nCRDBEYtShHS1swGCArZ+Ht3EtgJdAzPGWimaS3FxmdYqOqrkg/RiVmh9wi8d\n3p8z3P3+ceFhPioTrPlf6eEF3rmHNFZw51ESQsQU4+EHKNTrcXCNFPvWs3o8\nxEC9xU4PeClyz7TY1AubmYe0bPAbiQYtkFt1DOsnN8HfWa1OZ0WsVsKbna97\npSzWOG1VWLgq0F/IE1U4SI7p1pKHhTJpq2/Mv0Hy/G4gcgOTqaWrDX3NPV6H\nGwXSoucc0UxbSj7sC78YpT3FwQ0Gf+iqR/VuYEMZ/4hvyDOvUNFzloaTG2yk\nz0vR1v9AGWBtlgb+F6d50SUsYQoj4CTST0r8FP6CpH382MzQttZT/Tyx2lDk\nhq+CybRG72mrXeOmSOp+oQ3ZH3IKC3+w1TpzvPf/PdCxBS2vKd/nrm68DOyx\nmFRc\r\n=YmAl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/math-log10-approx.umd.js","github":{"user":"bemoje"},"module":"dist/math-log10-approx.esm.js","browser":"dist/math-log10-approx.umd.js","gitHead":"07d57e1b27fac0c7288cc2b95750a3e4d0d39251","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/math-log10-approx.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","start":"node -r esm src/math-log10-approx.js","commit":"npm run repo gitCommit","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/math-log10-approx.example.js","publish":"npm run repo npmPublish","version":"npm run repo version","keywords":"npm run repo keywords","git-create":"rimraf .git && npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-math-log10-approx","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-math-log10-approx.git","type":"git"},"_npmVersion":"6.12.1","description":"Approximate the logarithm base 10 of a small integer.","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/assert-args":"^1.0.0","@bemoje/assert-type":"^1.0.0","@bemoje/math-pow10-pre-computed":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^25.5.1","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/math-log10-approx_1.1.1_1588249587921_0.8642565407848637","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."}},"time":{"created":"2020-04-28T11:57:47.076Z","modified":"2025-06-17T23:57:19.951Z","1.0.0":"2020-04-28T11:57:47.231Z","1.1.0":"2020-04-28T12:04:47.400Z","1.1.1":"2020-04-30T12:26:28.039Z"},"bugs":{"url":"https://github.com/bemoje/bemoje-math-log10-approx/issues","email":"bemoje@gmail.com"},"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","homepage":"https://github.com/bemoje/bemoje-math-log10-approx#readme","keywords":["approximate","logarithm","base","small","integer","approximated","mathlog10approx"],"repository":{"url":"git+https://github.com/bemoje/bemoje-math-log10-approx.git","type":"git"},"description":"Approximate the logarithm base 10 of a small integer.","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"readme":"# @bemoje/math-log10-approx\n\nApproximate the logarithm base 10 of a small integer.\n\n#### Version\n\n<span><a href=\"https://npmjs.org/@bemoje/math-log10-approx\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/@bemoje/math-log10-approx\" alt=\"NPM version\" /></a></span>\n\n#### Travis CI\n\n<span><a href=\"https://npmjs.org/@bemoje/math-log10-approx\" title=\"View this project on NPM\"><img src=\"https://travis-ci.org/bemoje/bemoje-math-log10-approx.svg?branch=master\" alt=\"dependencies\" /></a></span>\n\n#### Dependencies\n\n<span><a href=\"https://npmjs.org/@bemoje/math-log10-approx\" title=\"View this project on NPM\"><img src=\"https://david-dm.org/bemoje/bemoje-math-log10-approx.svg\" alt=\"dependencies\" /></a></span>\n\n#### Stats\n\n<span><a href=\"https://npmjs.org/@bemoje/math-log10-approx\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dt/@bemoje/math-log10-approx\" alt=\"NPM downloads\" /></a></span>\n<span><a href=\"https://github.com/bemoje/bemoje-math-log10-approx/fork\" title=\"Fork this project\"><img src=\"https://img.shields.io/github/forks/bemoje/bemoje-math-log10-approx\" alt=\"Forks\" /></a></span>\n\n#### Donate\n\n<span><a href=\"https://www.buymeacoffee.com/bemoje\" title=\"Donate to this project using Buy Me A Beer\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?label=Buy me a beer!\" alt=\"Buy Me A Beer donate button\" /></a></span>\n<span><a href=\"https://paypal.me/forstaaloen\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg?label=PayPal\" alt=\"PayPal donate button\" /></a></span>\n\n## Installation\n\n```sh\nnpm install @bemoje/math-log10-approx\nnpm install --save @bemoje/math-log10-approx\nnpm install --save-dev @bemoje/math-log10-approx\n```\n\n## Usage\n\n```javascript\nimport mathLog10Approx from '@bemoje/math-log10-approx'\n\n//=> undefined\nlog10(0)\n//=> 0\n\nlog10(1)\n//=> 0\n\nlog10(5)\n//=> 0\n\nlog10(10)\n//=> 1\n\nlog10(100)\n//=> 2\n\nlog10(1000)\n//=> 3\n\nlog10(10000)\n//=> 4\n\nlog10(105000)\n//=> 5\n\nlog10(1000200)\n//=> 6\n\nlog10(10000010)\n//=> 7\n\nlog10(100051000)\n//=> 8\n\nlog10(1005100000)\n//=> 9\n\nlog10(10055100727920584576600)\n//=> 9\n\nlog10(100551007279206235576600)\n//=> 9\n\n```\n\n\n## Tests\nUses *Jest* to test module functionality. Run tests to get coverage details.\n\n```bash\nnpm run test\n```\n\n## API\n#r","readmeFilename":"readme.md"}