{"id":19728987,"url":"https://github.com/guoyunhe/bigdash","last_synced_at":"2025-11-21T19:03:21.727Z","repository":{"id":65564179,"uuid":"536432361","full_name":"guoyunhe/bigdash","owner":"guoyunhe","description":"re-implement lodash number functions with big.js","archived":false,"fork":false,"pushed_at":"2025-07-12T12:04:12.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-14T04:00:09.694Z","etag":null,"topics":["big","decimal","lodash","number"],"latest_commit_sha":null,"homepage":"https://guoyunhe.github.io/bigdash/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guoyunhe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-14T05:51:28.000Z","updated_at":"2025-07-12T12:08:11.000Z","dependencies_parsed_at":"2023-01-29T20:25:10.388Z","dependency_job_id":null,"html_url":"https://github.com/guoyunhe/bigdash","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/guoyunhe/bigdash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fbigdash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fbigdash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fbigdash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fbigdash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guoyunhe","download_url":"https://codeload.github.com/guoyunhe/bigdash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fbigdash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285672858,"owners_count":27212148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["big","decimal","lodash","number"],"created_at":"2024-11-12T00:09:07.919Z","updated_at":"2025-11-21T19:03:21.721Z","avatar_url":"https://github.com/guoyunhe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bigdash\n\n![Version](https://img.shields.io/npm/v/bigdash)\n![License](https://img.shields.io/npm/l/bigdash)\n![Downloads](https://img.shields.io/npm/dw/bigdash)\n![Bundle Size](https://img.shields.io/bundlephobia/minzip/bigdash)\n\nRe-implement lodash math functions with [big.js](https://github.com/MikeMcl/big.js).\n\n## Why?\n\nLodash:\n\n```js\nsum([0.1, 0.2]); // 0.30000000000000004\n```\n\nBigdash:\n\n```js\nsum([0.1, 0.2]); // 0.3\n```\n\n[Learn more...](https://0.30000000000000004.com/)\n\n## Install\n\n```bash\nnpm install --save bigdash\n```\n\n## Usage\n\n### add()\n\n```js\nimport { add } from 'bigdash';\n\nadd(0.1, 0.2); // 0.3\n```\n\n### divide()\n\n```js\nimport { divide } from 'bigdash';\n\ndivide(0.1, 0.2); // 0.5\n```\n\n### mean()\n\n```js\nimport { mean } from 'bigdash';\n\nmean([0.1, 0.2]); // 0.15\n```\n\n### meanBy()\n\n```js\nimport { meanBy } from 'bigdash';\n\nmeanBy([{ foo: { bar: 0.1 } }, { foo: { bar: 0.2 } }], 'foo.bar'); // 0.15\n\nmeanBy([{ foo: { bar: 0.1 } }, { foo: { bar: 0.2 } }], ['foo', 'bar']); // 0.15\n\nmeanBy([{ foo: { bar: 0.1 } }, { foo: { bar: 0.2 } }], (item) =\u003e item.foo.bar); // 0.15\n```\n\n### multiply()\n\n```js\nimport { multiply } from 'bigdash';\n\nmultiply(0.1, 0.2); // 0.02\n```\n\n### subtract()\n\n```js\nimport { subtract } from 'bigdash';\n\nsubtract(0.3, 0.2); // 0.1\n```\n\n### sum()\n\n```js\nimport { sum } from 'bigdash';\n\nsum([0.1, 0.2]); // 0.3\n```\n\n### sumBy()\n\n```js\nimport { sumBy } from 'bigdash';\n\nsumBy([{ foo: { bar: 0.1 } }, { foo: { bar: 0.2 } }], 'foo.bar'); // 0.3\n\nsumBy([{ foo: { bar: 0.1 } }, { foo: { bar: 0.2 } }], ['foo', 'bar']); // 0.3\n\nsumBy([{ foo: { bar: 0.1 } }, { foo: { bar: 0.2 } }], (item) =\u003e item.foo.bar); // 0.3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoyunhe%2Fbigdash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguoyunhe%2Fbigdash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoyunhe%2Fbigdash/lists"}