math-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Math API

You want to include Latex based equations on your website? Check out this awesome API 👉 https://math.now.sh

But sometimes, you might want to create those images locally. That's why this package is created.

Installation

npm install math-api

Usage

const math = require("math-api");

const svgImageContent = math.renderLatex({
	// required
	content: "\\log\\prod^N_{i}x_{i}=\\sum^N_i\\log{x_i}",

	// optional (default values are shown here)
	mode: "block", // or "inline"
	color: "black",
});

// inline svgImageContent in your html
// or
// write it to a svg file

Readme

Keywords

Package Sidebar

Install

npm i math-api

Weekly Downloads

1

Version

0.0.2

License

GPL-3.0-only

Unpacked Size

40.4 kB

Total Files

8

Last publish

Collaborators

  • sahithyan