# mal-ts

> TypeScript-safe MyAnimeList Public API wrapper

Latest version **1.1.0** (published 2023-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install mal-ts
pnpm add mal-ts
yarn add mal-ts
bun add mal-ts
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2023-06-11 |
| First published | 2022-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 68.7 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mist8kengas |
| Maintainers | mist8kengas |
| Keywords | mal-ts, MyAnimeList, MAL, API, TypeScript, JavaScript, Node, NodeJS |

## Links

- npm: https://www.npmjs.com/package/mal-ts
- Repository: https://github.com/mist8kengas/mal-ts
- Homepage: https://github.com/mist8kengas/mal-ts#readme
- Issues: https://github.com/mist8kengas/mal-ts/issues
- npm.io page: https://npm.io/package/mal-ts

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.25.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

- 1.1.0 (latest) — 2023-06-11
- 1.0.1 — 2022-02-13
- 1.0.0 — 2022-02-13

## README

# mal-ts

TypeScript-safe MyAnimeList Public API wrapper

## Installation

```bash
# npm
npm install mal-ts

# yarn
yarn add mal-ts
```

## Usage

```js
// commonjs
const MyAnimeList = require('mal-ts');
const mal = new MyAnimeList('client_id');
...

// module
import MyAnimeList from 'mal-ts'
const mal = new MyAnimeList('client_id');
...
```

> Replace `client_id` with your MyAnimeList Application's Client ID

## API

| Method                  | Description       |
| ----------------------- | ----------------- |
| **defaultFields**       | Default fields    |
| **anime(id[, fields])** | Get anime details |
| **manga(id[, fields])** | Get manga details |

## Promises

**mal-ts** depends on a native ES6 Promise implementation to be [supported](http://caniuse.com/promises). If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise).

## TypeScript

**mal-ts** includes [TypeScript](http://typescriptlang.org/) definitions.

_TSDoc (JSDoc) descriptions are derived from the [MyAnimeList API reference](https://myanimelist.net/apiconfig/references/api/v2)_

## License

[MIT](https://github.com/mist8kengas/mal-ts/blob/HEAD/LICENSE)

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