{"id":17437342,"url":"https://github.com/blixt/js-bigint","last_synced_at":"2025-12-30T03:38:00.037Z","repository":{"id":15757786,"uuid":"18496546","full_name":"blixt/js-bigint","owner":"blixt","description":"Allows working with integers of any size.","archived":false,"fork":false,"pushed_at":"2014-04-14T17:20:31.000Z","size":404,"stargazers_count":19,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-24T06:55:39.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blixt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-06T18:48:31.000Z","updated_at":"2024-04-18T02:52:52.000Z","dependencies_parsed_at":"2022-09-19T06:20:57.817Z","dependency_job_id":null,"html_url":"https://github.com/blixt/js-bigint","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blixt%2Fjs-bigint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blixt%2Fjs-bigint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blixt%2Fjs-bigint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blixt%2Fjs-bigint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blixt","download_url":"https://codeload.github.com/blixt/js-bigint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241360977,"owners_count":19950372,"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","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":[],"created_at":"2024-10-17T11:44:44.159Z","updated_at":"2025-12-30T03:38:00.012Z","avatar_url":"https://github.com/blixt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"BigInt [![Build Status Image][]][Build Status]\n======\n\nEnables working with integers beyond 53 bits (the upper limit of what\nJavaScript's `Number` type can accurately represent).\n\nThis is a pure JavaScript library, unlike other libraries that do the\nsame thing. The main benefit of being pure JavaScript is that you can\nuse it in a browser environment:\n\n![Browser compatibility](https://ci.testling.com/blixt/js-bigint.png)\n\nFor Node.js-only projects, consider looking into these C extensions:\n\n- [bignum](https://github.com/justmoon/node-bignum)\n- [bigint](https://github.com/substack/node-bigint)\n\n\nExample\n-------\n\n```js\n\u003e var bigint = require('bigintjs');\n\n\u003e bigint('99999999999999999999999999999').add('1').toString();\n'100000000000000000000000000000'\n\n\u003e bigint('123456789012345678901234567890').multiply('98765432109876543210987654321').toString();\n'12193263113702179522618503273362292333223746380111126352690'\n\n\u003e // Bitwise operations on a big number (JavaScript only supports up to 32 bits)\n\u003e bigint('0xFFFFFFFFFFFFFFFF').and('0xF0F0F0F0F0F0F0F0').shiftLeft(8).toString();\n'4444580219171430789120'\n```\n\n\nThis project is in an early state\n---------------------------------\n\nSome basic operations are still missing. Most notably:\n\n- Division (and modulus), but you can use bit shifting for powers of 2\n- Comparison (greater than / less than)\n- Square root\n\nFeel free to submit a pull request for any of the above.\n\n\nUsing this package\n------------------\n\nYou can install this package with [NPM][]:\n\n```bash\nnpm install --save bigintjs\n```\n\nTo be able to run this in a browser, you need to use a framework that\nsupports CommonJS modules (for example: [Browserify][]).\n\n\n[Browserify]: http://browserify.org/\n[Build Status]: https://travis-ci.org/blixt/js-bigint\n[Build Status Image]: https://api.travis-ci.org/blixt/js-bigint.png?branch=master\n[NPM]: https://www.npmjs.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblixt%2Fjs-bigint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblixt%2Fjs-bigint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblixt%2Fjs-bigint/lists"}