{"id":20949187,"url":"https://github.com/adityasharat/math-problem-generator-js","last_synced_at":"2025-05-14T03:32:03.097Z","repository":{"id":57292355,"uuid":"149664198","full_name":"adityasharat/math-problem-generator-js","owner":"adityasharat","description":"Generate simple math problems and test their results","archived":false,"fork":false,"pushed_at":"2018-10-16T19:10:33.000Z","size":172,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-13T01:26:49.161Z","etag":null,"topics":["education","javascript-library","learn","library","math"],"latest_commit_sha":null,"homepage":"","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/adityasharat.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":"2018-09-20T20:04:58.000Z","updated_at":"2022-02-09T11:14:42.000Z","dependencies_parsed_at":"2022-08-27T16:50:45.579Z","dependency_job_id":null,"html_url":"https://github.com/adityasharat/math-problem-generator-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityasharat%2Fmath-problem-generator-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityasharat%2Fmath-problem-generator-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityasharat%2Fmath-problem-generator-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityasharat%2Fmath-problem-generator-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityasharat","download_url":"https://codeload.github.com/adityasharat/math-problem-generator-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225273597,"owners_count":17448136,"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":["education","javascript-library","learn","library","math"],"created_at":"2024-11-19T00:33:19.491Z","updated_at":"2024-11-19T00:33:20.569Z","avatar_url":"https://github.com/adityasharat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Math Problem Generator\n\n\u003e Generate random math problems and test their results\n\n[![NPM](https://img.shields.io/npm/v/math-problem-generator.svg)](https://www.npmjs.com/package/math-problem-generator) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save math-problem-generator\n```\n\n## Usage\n\n```JavaScript\nimport MathProblems from 'math-problem-generator'\n\nconst evaluator = MathProblems.getEvaluator();\nevaluator.evaluate('2+2'); // 4\n\nconst generator = MathProblems.getGenerator(1);\nlet problem = generator.next(); // {x: \u003cnumber\u003e, y: \u003cnumber\u003e, op: '\u003coperation\u003e'}\nproblem.evaluate(); // returns the result\n```\n\n## License\n\nApache v2.0 © [adityasharat](https://github.com/adityasharat) 2018\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityasharat%2Fmath-problem-generator-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityasharat%2Fmath-problem-generator-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityasharat%2Fmath-problem-generator-js/lists"}