# math-api

> math.now.sh API ported as a npm package

Latest version **0.0.2** (published 2021-09-15) · GPL-3.0-only license · 0 weekly downloads

## Install

```sh
npm install math-api
pnpm add math-api
yarn add math-api
bun add math-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2021-09-15 |
| First published | 2021-09-05 |
| Weekly downloads | 0 |
| License | GPL-3.0-only |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 39.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sahithyan |
| Maintainers | sahithyan |
| Keywords | math, latex |

## Links

- npm: https://www.npmjs.com/package/math-api
- npm.io page: https://npm.io/package/math-api

## Dependencies (1)

- [mathjax-full](https://npm.io/package/mathjax-full.md) ^3.2.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2021-09-15
- 0.0.1 — 2021-09-05

## README

# 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

```javascript
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
```

---
_Source: https://npm.io/package/math-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
