{"id":21319094,"url":"https://github.com/kongnet/chem","last_synced_at":"2025-07-12T04:31:23.157Z","repository":{"id":47972887,"uuid":"206470842","full_name":"kongnet/chem","owner":"kongnet","description":"Chemical Equation Balancing","archived":false,"fork":false,"pushed_at":"2024-09-08T12:52:03.000Z","size":585,"stargazers_count":21,"open_issues_count":8,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T00:48:37.597Z","etag":null,"topics":["balance","chem","chemical","equation"],"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/kongnet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-09-05T03:58:07.000Z","updated_at":"2024-09-08T12:52:06.000Z","dependencies_parsed_at":"2024-09-08T13:55:03.783Z","dependency_job_id":null,"html_url":"https://github.com/kongnet/chem","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":"0.040000000000000036","last_synced_commit":"1a4a4f075399e3107778146a9a395b3db347a212"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongnet%2Fchem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongnet%2Fchem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongnet%2Fchem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongnet%2Fchem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kongnet","download_url":"https://codeload.github.com/kongnet/chem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225792499,"owners_count":17524966,"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":["balance","chem","chemical","equation"],"created_at":"2024-11-21T19:34:01.017Z","updated_at":"2024-11-21T19:34:01.515Z","avatar_url":"https://github.com/kongnet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sky chem\r\n\r\n![chemLogo](https://github.com/kongnet/chem/raw/master/screenShot/chem_test.png)\r\n\r\nA friend's kid is going to high school. I wrote a **Chemical Equation Balancing** code for him.\r\n\r\n## Install\r\n\r\n    npm i chem-eb\r\n\r\n## Test\r\n\r\n    npm test\r\n\r\n## Use\r\n\r\n```javascript\r\n// equation use -\u003e, =, - as split string\r\nlet balanceEq = require('chem-eb')\r\nconsole.log(balanceEq('P+O2=P2O5')) // 4P + 5O2 = 2P2O5\r\n\r\n// over-determined equation 会用到超定方程求解\r\nconsole.log(balanceEq('Fe2S3O12+NaOH=Na2SO4+FeO3H3')) // Fe2S3O12 + 6NaOH = 3Na2SO4 + 2FeO3H3\r\n\r\nconsole.log(balanceEq('Ca + NO3 -\u003e Ca(NO3)2')) //  Ca + 2NO3 = Ca(NO3)2\r\nconsole.log(balanceEq('Fe + Cl -\u003e FeCl3')) // Fe + 3Cl = FeCl3\r\nconsole.log(balanceEq('Ca(No3)2 + K3PO4 = Ca3(PO4)2 + KNo3')) //3Ca(No3)2 + 2K3PO4 = Ca3(PO4)2 + 6KNo3\r\nconsole.log(\r\n  balanceEq('K2Cr2O7 + H2SO4 + C2H5OH -\u003e K2SO4 + Cr2(SO4)3 + H2O + CH3COOH') //2K2Cr2O7 + 8H2SO4 + 3C2H5OH = 2K2SO4 + 2Cr2(SO4)3 + 11H2O + 3CH3COOH\r\n)\r\n```\r\n\r\n## NOTICE:\r\n\r\n~~when (OH)2 pls O2H2 input~~\r\n\r\n## TODO:\r\n\r\n- ~~over-determined equation~~\r\n- ~~Chemical functional groups unfold~~\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkongnet%2Fchem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkongnet%2Fchem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkongnet%2Fchem/lists"}