{"id":26361401,"url":"https://github.com/92181/calculator","last_synced_at":"2026-05-18T18:39:22.739Z","repository":{"id":214514455,"uuid":"736693408","full_name":"92181/calculator","owner":"92181","description":"A small and lightweight Javascript calculator. Useful for integration into web applications.","archived":false,"fork":false,"pushed_at":"2025-06-19T22:42:30.000Z","size":105,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T23:27:55.202Z","etag":null,"topics":["calculator","html","javascript","math","parser"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/92181.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-28T15:50:25.000Z","updated_at":"2025-06-19T22:42:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b44cfc2-f632-4f94-a8b0-00b442e98a02","html_url":"https://github.com/92181/calculator","commit_stats":null,"previous_names":["92181/calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/92181/calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fcalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fcalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fcalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fcalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/92181","download_url":"https://codeload.github.com/92181/calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fcalculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33187635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["calculator","html","javascript","math","parser"],"created_at":"2025-03-16T17:37:28.954Z","updated_at":"2026-05-18T18:39:22.733Z","avatar_url":"https://github.com/92181.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javascript Calculator\nA small and lightweight calculator library/template, It gives a good illustration on how a calculator parses a string and resolves the containing calculation. \nIt has no dependencies and can be used freely in a web application for example. \n\nVarious things that it can do are...\n* Handle floating point inaccuracies and return a high resolution result.\n* Perform complex calculations such as π+5π(2+1.1) and 5!%4^2.\n* The unminified version is just 2 KB large making it capable of being used in virtually any package.\n\nIt is also contains an RPN (Reverse Polish Notation) mode which allows you to calculate things in a more direct and 'faster' way.\n\n# Basic Usage\nYou can try it out directly in your browser although locally. The calculator logic is packaged in the same file as the demo. You can extract the logic and build around it if you wish to do so.\nThe functionality can easily be extended to include more advanced operations such as the usage of cosine and the processing of other vectors.\n\n```javascript\n// Parse String And Return Result Of Given Calculation;\nlet i=res(P.value);if(Number.isInteger(i)){P.value=i}else{P.value=parseFloat(i.toFixed(8))};P.focus();\n```\n\n# Preview Image\n\u003cimg src=\"./preview.png\" width=\"25%\"\u003e\n\n# License\nThis project is licensed under the permissive MIT license. Please consider starring the project if you like it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F92181%2Fcalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F92181%2Fcalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F92181%2Fcalculator/lists"}