{"id":15044293,"url":"https://github.com/viktorstrate/algebra-latex","last_synced_at":"2025-10-24T07:31:01.411Z","repository":{"id":57175938,"uuid":"81320693","full_name":"viktorstrate/algebra-latex","owner":"viktorstrate","description":"Parse and calculate latex formatted math","archived":false,"fork":false,"pushed_at":"2023-04-18T04:53:02.000Z","size":877,"stargazers_count":28,"open_issues_count":7,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T00:25:26.860Z","etag":null,"topics":["algebra","asciimath","cas","latex","math","nodejs","parse","parser"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/algebra-latex","language":"JavaScript","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/viktorstrate.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}},"created_at":"2017-02-08T11:03:08.000Z","updated_at":"2023-08-28T17:51:06.000Z","dependencies_parsed_at":"2024-06-20T19:04:23.255Z","dependency_job_id":"ee941dd5-a852-4408-8cdc-73ea8e063f3d","html_url":"https://github.com/viktorstrate/algebra-latex","commit_stats":{"total_commits":118,"total_committers":3,"mean_commits":"39.333333333333336","dds":0.0423728813559322,"last_synced_commit":"02afc254e84aa81e8663a9b0d532306182f5cb21"},"previous_names":["viktorstrate/latex-mathify"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viktorstrate%2Falgebra-latex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viktorstrate%2Falgebra-latex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viktorstrate%2Falgebra-latex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viktorstrate%2Falgebra-latex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viktorstrate","download_url":"https://codeload.github.com/viktorstrate/algebra-latex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237932070,"owners_count":19389560,"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":["algebra","asciimath","cas","latex","math","nodejs","parse","parser"],"created_at":"2024-09-24T20:50:23.967Z","updated_at":"2025-10-24T07:31:00.972Z","avatar_url":"https://github.com/viktorstrate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# algebra-latex\n\n[![Build Status](https://travis-ci.org/viktorstrate/algebra-latex.svg?branch=master)](https://travis-ci.org/viktorstrate/algebra-latex)\n[![npm version](https://badge.fury.io/js/algebra-latex.svg)](https://www.npmjs.com/package/algebra-latex)\n\nAn npm module, with no dependencies, for parsing LaTeX math to a regular math string ([ascii math](http://asciimath.org/)),\nthat can be parsed to other algebra or math libraries like [algebrite](http://algebrite.org/) and [algebra.js](http://algebra.js.org/)\n\n## Example\n\n```javascript\nconst AlgebraLatex = require('algebra-latex')\n\n// Parse from LaTeX ...\nconst latexInput = '\\\\frac{1}{\\\\sqrt{2}}\\\\cdot x=10'\nconst algebraObj = new AlgebraLatex().parseLatex(latexInput)\n\n// ... or parse from regular math string\nconst mathInput = '1/sqrt(2)*x=10'\nconst algebraObj = new AlgebraLatex().parseMath(mathInput)\n\nconsole.log(algebraObj.toMath()) // output: 1/sqrt(2)*x=10\nconsole.log(algebraObj.toLatex()) // output: \\frac{1}{\\sqrt{2}}\\cdot x=10\n```\n\n### Parse to other libraries\n\n**Supported libraries**\n\n- [algebra.js](http://algebra.js.org/)\n- [algebrite](http://algebrite.org/)\n- [coffeequate](http://coffeequate.readthedocs.io/)\n\n\u003e NOTE: The above libraries are optional, and have to be installed before use\n\n_continuing from example above_\n\n```javascript\n...\n\nvar algebraJS = require('algebra.js')\nvar algebrite = require('algebrite')\nvar coffeequate = require('coffeequate')\n\n// For algebra.js\nalgebraObj.toAlgebra(algebraJS) // Will either return an algebra.js expression or equation\n\n// For algebrite\nalgebraObject.toAlgebrite(algebrite)\n\n// For coffequate\nalgebraObject.toCoffeequate(coffeequate)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviktorstrate%2Falgebra-latex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviktorstrate%2Falgebra-latex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviktorstrate%2Falgebra-latex/lists"}