{"name":"@rc-component/mini-decimal","version":"1.1.4","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.2.0","@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":"53fc81e07e84067901253f165d1bc4d8345d632d","_id":"@rc-component/mini-decimal@1.1.4","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"integrity":"sha512-xiuXcaCwyOWpD8a8scdExFl+bntNphAW8XeenL1ig2en0AAZY0Pcp4pC0dI22qJ+NvxKn9RoNIoRdqYU3BLH4w==","shasum":"36bccedbffb54662ba314a26f63910414f48bc44","tarball":"http://registry-npm.ywwl.com/@rc-component/mini-decimal/download/@rc-component/mini-decimal-1.1.4.tgz","fileCount":31,"unpackedSize":49411,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF2//cLf9yzH6DZYejKzz0PSZXa3rZmoOb0cXt7Ms8uZAiEApzhZHBhCEGjg1bbeoAnW5fSAYI8Vm5WeE+usj1eWLOM="}],"size":8627,"noattachment":false,"key":"/@rc-component/mini-decimal/-/@rc-component/mini-decimal-1.1.4.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mini-decimal_1.1.4_1780676445948_0.828361948409507"},"_hasShrinkwrap":false,"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":1780676446101,"_cnpm_publish_time":1780676446101,"dist-tags":{"latest":"1.1.4"}}