{"_id":"@bnqkl/calc","_rev":"2-17447d9e425fb5a4d309d6b174b27196","name":"@bnqkl/calc","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"module":"./esm/index.js","main":"./script/index.js","types":"./types/index.d.ts","name":"@bnqkl/calc","version":"0.1.0","description":"an css like calc parser and compiler and executor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/BioforestChain/calc.git"},"bugs":{"url":"https://github.com/BioforestChain/calc/issues"},"exports":{".":{"import":{"types":"./types/index.d.ts","default":"./esm/index.js"},"require":{"types":"./types/index.d.ts","default":"./script/index.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^18.11.9","chalk":"^4.1.2","@deno/shim-deno":"~0.15.0"},"homepage":"https://github.com/BioforestChain/calc#readme","_id":"@bnqkl/calc@0.1.0","_nodeVersion":"20.1.0","_npmVersion":"9.3.0","dist":{"integrity":"sha512-eHM5YBJJmFlB0PH0xYruGLfPLhOy/zzSQwpVq5K9y+Q2saNTvi51iV/R+NOAxeVvBqvRkUbyputiowB4VbzqoQ==","shasum":"9970d23e5884942f73f410973a3cfec64f313ff7","tarball":"https://registry.npmjs.org/@bnqkl/calc/-/calc-0.1.0.tgz","fileCount":32,"unpackedSize":107723,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnY5npqs++xoHYGJB+ovcY98FfJPxVAvCLZYcWaDQ79gIhAOO/tZojm31rJxAIK7YR/qo8bxcC94TlaROn7vrr4X2V"}]},"_npmUser":{"name":"kezhaofeng","email":"gaubeebangeel@gmail.com"},"directories":{},"maintainers":[{"name":"bamboohollad","email":"aa6747771@163.com"},{"name":"kezhaofeng","email":"gaubeebangeel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calc_0.1.0_1684242139125_0.7540002354482482"},"_hasShrinkwrap":false},"0.1.1":{"module":"./esm/index.js","main":"./script/index.js","types":"./types/index.d.ts","name":"@bnqkl/calc","version":"0.1.1","description":"an css like calc parser and compiler and executor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/BioforestChain/calc.git"},"bugs":{"url":"https://github.com/BioforestChain/calc/issues"},"exports":{".":{"import":{"types":"./types/index.d.ts","default":"./esm/index.js"},"require":{"types":"./types/index.d.ts","default":"./script/index.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^18.11.9","chalk":"^4.1.2","@deno/shim-deno":"~0.15.0"},"gitHead":"434021e12ef365afd3b5a1e84fc9ebe9056fb3f0","homepage":"https://github.com/BioforestChain/calc#readme","_id":"@bnqkl/calc@0.1.1","_nodeVersion":"20.1.0","_npmVersion":"9.3.0","dist":{"integrity":"sha512-oq+Sr5VddvpuP5XBDuoiVJ22sYJ7dspJwId2sht0isKiogBQiNeGvuKYLKDm7jvjOVoWvIS4qPLlBWTMLTqdQA==","shasum":"ee320e0a9d529c4775077692508fb6ef12a6c362","tarball":"https://registry.npmjs.org/@bnqkl/calc/-/calc-0.1.1.tgz","fileCount":32,"unpackedSize":108211,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDRySsxbJ93nnpYdqePLc0jLajRS5b7sffDRjNy9ERSMAiAxDc6mqrWDaDKMk4u9NLwe+gVfv6MhUhWAV1kH6U+CDQ=="}]},"_npmUser":{"name":"kezhaofeng","email":"gaubeebangeel@gmail.com"},"directories":{},"maintainers":[{"name":"bamboohollad","email":"aa6747771@163.com"},{"name":"kezhaofeng","email":"gaubeebangeel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calc_0.1.1_1684242871828_0.20437033788526504"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-16T13:02:19.038Z","0.1.0":"2023-05-16T13:02:19.323Z","modified":"2023-06-10T02:45:37.168Z","0.1.1":"2023-05-16T13:14:32.112Z"},"maintainers":[{"email":"349094287@qq.com","name":"wzzzzx"},{"email":"aa6747771@163.com","name":"bamboohollad"},{"email":"gaubeebangeel@gmail.com","name":"kezhaofeng"}],"description":"an css like calc parser and compiler and executor","homepage":"https://github.com/BioforestChain/calc#readme","repository":{"type":"git","url":"git+https://github.com/BioforestChain/calc.git"},"bugs":{"url":"https://github.com/BioforestChain/calc/issues"},"license":"MIT","readme":"# 计算表达式\n\n感谢 https://github.com/peakchen90/decimal-eval/ 为表达式解析器打下基础。本项目从该解析器开始起航。\n\n移除了 [bignumber.js](https://www.npmjs.com/package/bignumber.js)，而是引入了“分数”作为计算的概念，因为分数可以用两个 bigint 来表达，那么就可以用于无限的精度。\n\n## TODO\n\n- [ ] 函数表达式的支持\n- [ ] 支持自定义对象作为 “数值”，而不再仅仅是 `string`，从而达到更高的性能\n- [ ] 更好的 API 设计，使得 Parser 是完全独立隔离的\n- [ ] 自定义单位支持\n- [ ] 使用 WASM 产出更高的性能\n","readmeFilename":"README.md"}