{"name":"@rc-component/mini-decimal","version":"1.1.3","keywords":["decimal"],"author":{"name":"smith3816@gmail.com"},"license":"MIT","_id":"@rc-component/mini-decimal@1.1.3","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":"461d0cd2a91efd3c92503763d8c00625552d211f","tarball":"http://registry-npm.ywwl.com/@rc-component/mini-decimal/download/@rc-component/mini-decimal-1.1.3.tgz","fileCount":31,"integrity":"sha512-bk/FJ09fLf+NLODMAFll6CfYrHPBioTedhW6lxDBuuWucJEqFUd4l/D/5JgIi3dina6sYahB8iuPAZTNz2pMxw==","signatures":[{"sig":"MEYCIQCo02EAWXt+CS5w4bPAXQxRP7TNJjxybG5Nm/L/UNSPvwIhANgZjkYY3LLyCNaxhjfDjQFol94Yi9HJblA7ZMkVMl9A","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49411,"size":8625,"noattachment":false,"key":"/@rc-component/mini-decimal/-/@rc-component/mini-decimal-1.1.3.tgz"},"main":"./lib/index","module":"./es/index","engines":{"node":">=8.x"},"gitHead":"2f43401c8809ebe6190a947839cd6d054ce5c739","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.3_1773730649709_0.11144196865486644","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":1773730649872,"_cnpm_publish_time":1773730649872,"dist-tags":{"latest":"1.1.4"}}