{"_id":"@rc-component/mini-decimal","_rev":"4505328","name":"@rc-component/mini-decimal","description":"Lite lib to only support decimal add calculation","dist-tags":{"latest":"1.1.3"},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"time":{"modified":"2026-04-09T09:41:00.000Z","created":"2022-12-01T07:10:28.563Z","1.1.3":"2026-03-17T06:57:29.872Z","1.1.2":"2026-03-14T09:19:45.654Z","1.1.1":"2026-03-13T15:23:34.330Z","1.1.0":"2023-06-12T08:19:37.773Z","1.0.1":"2022-12-01T07:14:12.254Z","1.0.0":"2022-12-01T07:10:28.563Z"},"users":{},"author":{"name":"smith3816@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/react-component/mini-decimal.git"},"versions":{"1.1.3":{"name":"@rc-component/mini-decimal","version":"1.1.3","description":"Lite lib to only support decimal add calculation","keywords":["decimal"],"homepage":"https://github.com/react-component/mini-decimal","bugs":{"url":"https://github.com/react-component/mini-decimal/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/mini-decimal.git"},"license":"MIT","author":{"name":"smith3816@gmail.com"},"main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build","deploy":"npm run docs:build && npm run docs:deploy","docs:build":"dumi build","docs:deploy":"gh-pages -d dist","coverage":"rc-test --coverage","lint":"eslint src/ --ext .tsx,.ts","lint:tsc":"tsc -p tsconfig.json --noEmit","now-build":"npm run docs:build","prepublishOnly":"npm run compile && rc-np","prettier":"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"","start":"dumi dev","test":"rc-test","watch":"father dev"},"dependencies":{"@babel/runtime":"^7.18.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.4","@rc-component/np":"^1.0.4","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.1.0","@types/jest":"^29.5.12","@types/node":"^22.1.0","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@umijs/fabric":"^4.0.1","dumi":"^2.3.8","eslint":"^8.57.0","father":"^4.4.4","gh-pages":"^6.1.1","prettier":"^3.3.3","react":"^18.0.0","react-dom":"^18.0.0","rc-test":"^7.0.15","typescript":"^5.4.5"},"engines":{"node":">=8.x"},"gitHead":"2f43401c8809ebe6190a947839cd6d054ce5c739","_id":"@rc-component/mini-decimal@1.1.3","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"shasum":"461d0cd2a91efd3c92503763d8c00625552d211f","size":8625,"noattachment":false,"key":"/@rc-component/mini-decimal/-/@rc-component/mini-decimal-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/mini-decimal/download/@rc-component/mini-decimal-1.1.3.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mini-decimal_1.1.3_1773730649709_0.11144196865486644"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-17T06:57:29.872Z","publish_time":1773730649872,"_source_registry_name":"default","_cnpm_publish_time":1773730649872},"1.1.2":{"name":"@rc-component/mini-decimal","version":"1.1.2","description":"Lite lib to only support decimal add calculation","keywords":["decimal"],"homepage":"https://github.com/react-component/mini-decimal","bugs":{"url":"https://github.com/react-component/mini-decimal/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/mini-decimal.git"},"license":"MIT","author":{"name":"smith3816@gmail.com"},"main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build","deploy":"npm run docs:build && npm run docs:deploy","docs:build":"dumi build","docs:deploy":"gh-pages -d dist","coverage":"rc-test --coverage","lint":"eslint src/ --ext .tsx,.ts","lint:tsc":"tsc -p tsconfig.json --noEmit","now-build":"npm run docs:build","prepublishOnly":"npm run compile && rc-np","prettier":"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"","start":"dumi dev","test":"rc-test","watch":"father dev"},"dependencies":{"@babel/runtime":"^7.18.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.4","@rc-component/np":"^1.0.4","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.1.0","@types/jest":"^29.5.12","@types/node":"^22.1.0","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@umijs/fabric":"^4.0.1","dumi":"^2.3.8","eslint":"^8.57.0","father":"^4.4.4","gh-pages":"^6.1.1","prettier":"^3.3.3","react":"^18.0.0","react-dom":"^18.0.0","rc-test":"^7.0.15","typescript":"^5.4.5"},"engines":{"node":">=8.x"},"gitHead":"ebb8580447dd7b7a38a0d054acd95b9516a31891","_id":"@rc-component/mini-decimal@1.1.2","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"shasum":"0de3009e5c6ee977929d92615a0289e3f50d18c0","size":7921,"noattachment":false,"key":"/@rc-component/mini-decimal/-/@rc-component/mini-decimal-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/mini-decimal/download/@rc-component/mini-decimal-1.1.2.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mini-decimal_1.1.2_1773479985512_0.8393996678764428"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-14T09:19:45.654Z","publish_time":1773479985654,"_source_registry_name":"default","_cnpm_publish_time":1773479985654},"1.1.1":{"name":"@rc-component/mini-decimal","version":"1.1.1","description":"Lite lib to only support decimal add calculation","keywords":["decimal"],"homepage":"https://github.com/react-component/mini-decimal","bugs":{"url":"https://github.com/react-component/mini-decimal/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/mini-decimal.git"},"license":"MIT","author":{"name":"smith3816@gmail.com"},"main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build","deploy":"npm run docs:build && npm run docs:deploy","docs:build":"dumi build","docs:deploy":"gh-pages -d dist","coverage":"rc-test --coverage","lint":"eslint src/ --ext .tsx,.ts","lint:tsc":"tsc -p tsconfig.json --noEmit","now-build":"npm run docs:build","prepublishOnly":"npm run compile && rc-np","prettier":"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"","start":"dumi dev","test":"rc-test","watch":"father dev"},"dependencies":{"@babel/runtime":"^7.18.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.4","@rc-component/np":"^1.0.4","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.1.0","@types/jest":"^29.5.12","@types/node":"^22.1.0","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@umijs/fabric":"^4.0.1","dumi":"^2.3.8","eslint":"^8.57.0","father":"^4.4.4","gh-pages":"^6.1.1","prettier":"^3.3.3","react":"^18.0.0","react-dom":"^18.0.0","rc-test":"^7.0.15","typescript":"^5.4.5"},"engines":{"node":">=8.x"},"gitHead":"191de349b7efd5c26fd4b6ee64a7de9fce639769","_id":"@rc-component/mini-decimal@1.1.1","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"shasum":"f2f1d5bccc3f1321b6f22af9d60c61b342d377af","size":54424,"noattachment":false,"key":"/@rc-component/mini-decimal/-/@rc-component/mini-decimal-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/mini-decimal/download/@rc-component/mini-decimal-1.1.1.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mini-decimal_1.1.1_1773415414173_0.316823422203256"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-13T15:23:34.330Z","publish_time":1773415414330,"_source_registry_name":"default","_cnpm_publish_time":1773415414330},"1.1.0":{"name":"@rc-component/mini-decimal","version":"1.1.0","description":"Lite lib to only support decimal add calculation","keywords":["decimal"],"homepage":"https://github.com/react-component/mini-decimal","bugs":{"url":"https://github.com/react-component/mini-decimal/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/mini-decimal.git"},"license":"MIT","author":{"name":"smith3816@gmail.com"},"main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build","deploy":"npm run docs:build && npm run docs:deploy","docs:build":"dumi build","docs:deploy":"gh-pages -d docs-dist","lint":"eslint src/ --ext .tsx,.ts","lint:tsc":"tsc -p tsconfig.json --noEmit","now-build":"npm run docs:build","prepublishOnly":"npm run compile && np --no-cleanup --yolo --no-publish","prettier":"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"","start":"dumi dev","test":"umi-test","test:coverage":"npm run test --coverage","watch":"father dev"},"dependencies":{"@babel/runtime":"^7.18.0"},"devDependencies":{"@rc-component/father-plugin":"^1.0.0","@testing-library/jest-dom":"^5.16.4","@testing-library/react":"^13.0.0","@types/jest":"^26.0.20","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@umijs/fabric":"^2.5.2","dumi":"^1.1.0","eslint":"^7.18.0","father":"^4.0.0-rc.8","gh-pages":"^3.1.0","np":"^5.0.3","prettier":"^2.1.2","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^4.6.3","umi-test":"^1.9.7"},"engines":{"node":">=8.x"},"gitHead":"2469a1d38874071507542fe3c68b8b4382b09432","_id":"@rc-component/mini-decimal@1.1.0","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"7b7a362b14a0a54cb5bc6fd2b82731f29f11d9b0","size":7584,"noattachment":false,"key":"/@rc-component/mini-decimal/-/@rc-component/mini-decimal-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/mini-decimal/download/@rc-component/mini-decimal-1.1.0.tgz"},"_npmUser":{"name":"peachscript","email":"scdzwyxst@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mini-decimal_1.1.0_1686557977583_0.02680065583577118"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-12T08:19:37.773Z","publish_time":1686557977773,"_source_registry_name":"default","_cnpm_publish_time":1686557977773},"1.0.1":{"name":"@rc-component/mini-decimal","version":"1.0.1","description":"Lite lib to only support decimal add calculation","keywords":["decimal"],"homepage":"https://github.com/react-component/mini-decimal","bugs":{"url":"https://github.com/react-component/mini-decimal/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/mini-decimal.git"},"license":"MIT","author":{"name":"smith3816@gmail.com"},"main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build","deploy":"npm run docs:build && npm run docs:deploy","docs:build":"dumi build","docs:deploy":"gh-pages -d docs-dist","lint":"eslint src/ --ext .tsx,.ts","lint:tsc":"tsc -p tsconfig.json --noEmit","now-build":"npm run docs:build","prepublishOnly":"npm run compile && np --no-cleanup --yolo --no-publish","prettier":"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"","start":"dumi dev","test":"umi-test","test:coverage":"npm run test --coverage","watch":"father dev"},"dependencies":{"@babel/runtime":"^7.18.0"},"devDependencies":{"@rc-component/father-plugin":"^1.0.0","@testing-library/jest-dom":"^5.16.4","@testing-library/react":"^13.0.0","@types/jest":"^26.0.20","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@umijs/fabric":"^2.5.2","dumi":"^1.1.0","eslint":"^7.18.0","father":"^4.0.0-rc.8","gh-pages":"^3.1.0","np":"^5.0.3","prettier":"^2.1.2","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^4.6.3","umi-test":"^1.9.7"},"engines":{"node":">=8.x"},"gitHead":"ba48ad1898518dc01f10c0be8fd49e191075d8ca","_id":"@rc-component/mini-decimal@1.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"e5dbc20a6a5b0e234d279bc71ce730ab865d3910","size":7058,"noattachment":false,"key":"/@rc-component/mini-decimal/-/@rc-component/mini-decimal-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/mini-decimal/download/@rc-component/mini-decimal-1.0.1.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mini-decimal_1.0.1_1669878852107_0.06418217745007215"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-01T07:14:26.959Z","publish_time":1669878852254,"_cnpm_publish_time":1669878852254},"1.0.0":{"name":"@rc-component/mini-decimal","version":"1.0.0","description":"Lite lib to only support decimal add calculation","keywords":["decimal"],"homepage":"https://github.com/react-component/mini-decimal","bugs":{"url":"https://github.com/react-component/mini-decimal/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/mini-decimal.git"},"license":"MIT","author":{"name":"smith3816@gmail.com"},"main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build","deploy":"npm run docs:build && npm run docs:deploy","docs:build":"dumi build","docs:deploy":"gh-pages -d docs-dist","lint":"eslint src/ --ext .tsx,.ts","lint:tsc":"tsc -p tsconfig.json --noEmit","now-build":"npm run docs:build","prepublishOnly":"npm run compile && np --no-cleanup --yolo --no-publish","prettier":"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"","start":"dumi dev","test":"umi-test","test:coverage":"npm run test --coverage","watch":"father dev"},"dependencies":{"@babel/runtime":"^7.18.0"},"devDependencies":{"@rc-component/father-plugin":"^1.0.0","@testing-library/jest-dom":"^5.16.4","@testing-library/react":"^13.0.0","@types/jest":"^26.0.20","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@umijs/fabric":"^2.5.2","dumi":"^1.1.0","eslint":"^7.18.0","father":"^4.0.0-rc.8","gh-pages":"^3.1.0","np":"^5.0.3","prettier":"^2.1.2","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^4.6.3","umi-test":"^1.9.7"},"engines":{"node":">=8.x"},"gitHead":"d164ea8d3874a21ebe35ad0ff66aafa013b9a0b1","_id":"@rc-component/mini-decimal@1.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"235e0329ba1f8254cf8ab25eb121402752ac7c45","size":7034,"noattachment":false,"key":"/@rc-component/mini-decimal/-/@rc-component/mini-decimal-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/mini-decimal/download/@rc-component/mini-decimal-1.0.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mini-decimal_1.0.0_1669878628324_0.49478936898827386"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-01T07:10:43.163Z","publish_time":1669878628563,"_cnpm_publish_time":1669878628563}},"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","_attachments":{},"homepage":"https://github.com/react-component/mini-decimal","bugs":{"url":"https://github.com/react-component/mini-decimal/issues"},"license":"MIT"}