{"name":"@rc-component/mini-decimal","version":"1.1.2","keywords":["decimal"],"author":{"name":"smith3816@gmail.com"},"license":"MIT","_id":"@rc-component/mini-decimal@1.1.2","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"},{"name":"chenshuai2144","email":"wasd2144@hotmail.com"}],"homepage":"https://github.com/react-component/mini-decimal","bugs":{"url":"https://github.com/react-component/mini-decimal/issues"},"dist":{"shasum":"0de3009e5c6ee977929d92615a0289e3f50d18c0","tarball":"http://registry-npm.ywwl.com/@rc-component/mini-decimal/download/@rc-component/mini-decimal-1.1.2.tgz","fileCount":31,"integrity":"sha512-ZrT0tYKwTVOsvRjC5jwaqL36h4sEe57gh1r4cnmIteEpr4YtvhnQGeTL7yjtA1Z/+5LNY3t4gyohaYKq1Q/Clg==","signatures":[{"sig":"MEQCIAKOmXmT3EEAc9ykV/r5jGZIIba8YGOdVvkXE2bJM8zaAiAZj9ZGWDmRhrQJInyHTwSTN6+m1sqSL8n/pwFcoliMsA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40748,"size":7921,"noattachment":false,"key":"/@rc-component/mini-decimal/-/@rc-component/mini-decimal-1.1.2.tgz"},"main":"./lib/index","module":"./es/index","engines":{"node":">=8.x"},"gitHead":"ebb8580447dd7b7a38a0d054acd95b9516a31891","scripts":{"lint":"eslint src/ --ext .tsx,.ts","test":"rc-test","start":"dumi dev","watch":"father dev","deploy":"npm run docs:build && npm run docs:deploy","compile":"father build","coverage":"rc-test --coverage","lint:tsc":"tsc -p tsconfig.json --noEmit","prettier":"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"","now-build":"npm run docs:build","docs:build":"dumi build","docs:deploy":"gh-pages -d dist","prepublishOnly":"npm run compile && rc-np"},"typings":"es/index.d.ts","_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"repository":{"url":"git+https://github.com/react-component/mini-decimal.git","type":"git"},"_npmVersion":"11.7.0","description":"Lite lib to only support decimal add calculation","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@babel/runtime":"^7.18.0"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.3.8","react":"^18.0.0","eslint":"^8.57.0","father":"^4.4.4","rc-test":"^7.0.15","gh-pages":"^6.1.1","prettier":"^3.3.3","react-dom":"^18.0.0","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^22.1.0","@types/react":"^18.3.12","@umijs/fabric":"^4.0.1","@rc-component/np":"^1.0.4","@types/react-dom":"^18.3.1","@testing-library/react":"^16.1.0","@testing-library/jest-dom":"^6.1.5","@rc-component/father-plugin":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/mini-decimal_1.1.2_1773479985512_0.8393996678764428","host":"s3://npm-registry-packages-npm-production"},"readme":"# @rc-component/mini-decimal\n\nA mini decimal calculator which only support `add`, `multi` or compare operation for mini bundle size.\n\n[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/@rc-component/mini-decimal.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/@rc-component/mini-decimal\n[github-actions-image]: https://github.com/react-component/mini-decimal/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/mini-decimal/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/mini-decimal/master.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/react-component/mini-decimal/branch/master\n[download-image]: https://img.shields.io/npm/dm/@rc-component/mini-decimal.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/mini-decimal\n\n## Development\n\n```bash\nnpm install\nnpm test\n```\n\n## Usage\n\n```tsx\nimport getMiniDecimal from '@rc-component/mini-decimal';\n\n// Add\ngetMiniDecimal('0.1').add('0.2').toString(); // 0.3\n\n// Multi\ngetMiniDecimal('0.1').multi('0.2').toString(); // 0.02\n\n// Negate\ngetMiniDecimal('0.1').negate().toString(); // -0.1\n\n// Equal\ngetMiniDecimal('0.1').equal('0.1'); // true\ngetMiniDecimal('0.1').equal('0.2'); // false\n\n// Less Equals\ngetMiniDecimal('0.1').lessEquals('0.2'); // true\ngetMiniDecimal('0.1').lessEquals('0.1'); // false\n```\n","publish_time":1773479985654,"_cnpm_publish_time":1773479985654,"dist-tags":{"latest":"1.1.4"}}