# tinyyana-leveling

> A Leveling System module, based on typescript.

Latest version **1.0.2** (published 2023-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install tinyyana-leveling
pnpm add tinyyana-leveling
yarn add tinyyana-leveling
bun add tinyyana-leveling
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-06-21 |
| First published | 2023-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 29.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TinyYana |
| Maintainers | tinyyana |
| Keywords | leveling, discord, bot |

## Links

- npm: https://www.npmjs.com/package/tinyyana-leveling
- npm.io page: https://npm.io/package/tinyyana-leveling

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) ^5.1.3

## Recent versions

- 1.0.2 (latest) — 2023-06-21
- 1.0.1 — 2023-06-04
- 1.0.0 — 2023-06-04

## README

# TinyYana-Leveling

LevelService is a TypeScript module that allows you to manage the levels, experience, and currency of members. It was originally part of the project [TinyYana-Community/LevelBot](https://github.com/TinyYana-Community/LevelBot). However, since this leveling system can be used outside of a Discord bot, it has been extracted into its own project.

## Installation

You can install this module using npm:

```sh
npm i tinyyana-leveling
```

You can then import the module using `import` or `require`:

```js
import LevelService from 'level-service';
// or
const LevelService = require('level-service');
```

You can now use the static methods of the LevelService class to manage the levels, experience, and currency of members. For example:

```js
// Add 100 experience points to a member
await LevelService.addExp('123456789', 100);

// Add 10 currency to a member
await LevelService.addCurrency('123456789', 10);

// Get the level of a member
const level = await LevelService.getLevel('123456789');

// Get the currency of a member
const currency = LevelService.getCurrency('123456789');
```

## License

This work is licensed under the [MIT License](https://opensource.org/licenses/MIT).

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

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