{"id":19353544,"url":"https://github.com/elldritch/simple-calculator","last_synced_at":"2025-06-23T11:36:58.738Z","repository":{"id":147785441,"uuid":"12014503","full_name":"elldritch/simple-calculator","owner":"elldritch","description":"A simple JavaScript calculator that evaluates arbitrary mathematical expressions. Intended as a demonstration.","archived":false,"fork":false,"pushed_at":"2013-08-11T05:55:10.000Z","size":372,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T10:49:29.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/elldritch.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":"2013-08-10T02:46:14.000Z","updated_at":"2014-08-17T01:29:06.000Z","dependencies_parsed_at":"2023-04-12T15:53:26.396Z","dependency_job_id":null,"html_url":"https://github.com/elldritch/simple-calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elldritch/simple-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elldritch%2Fsimple-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elldritch%2Fsimple-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elldritch%2Fsimple-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elldritch%2Fsimple-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elldritch","download_url":"https://codeload.github.com/elldritch/simple-calculator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elldritch%2Fsimple-calculator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261470043,"owners_count":23163210,"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-11-10T04:43:13.642Z","updated_at":"2025-06-23T11:36:53.713Z","avatar_url":"https://github.com/elldritch.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-calculator.js\n\nIt's a simple calculator, in case you couldn't tell. It supports arbitrary evaluation of mathematical expressions while checking for operator precedence. Supported operations include braces, unary negation, exponentiation, multiplication, and addition.\n\n## Usage\n```javascript\n  var calc = require('simple-calculator');\n  calc('(5 + 5) / 24^-8');\n  calc(' (5 + 5 / 24)^-8', true); // Verbose reporting.\n```\nThe first argument is a string expression, the second is `true` or `false` for verbosity, the third is the number of decimal places to round (defaults to 5).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felldritch%2Fsimple-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felldritch%2Fsimple-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felldritch%2Fsimple-calculator/lists"}