@ryyseexvi/temtem-promise-v1 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -8
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Temtem API Wrapper 🎮
|
2
2
|
|
3
|
-
[![NPM Version](https://img.shields.io/npm/v/temtem-promise-v1)](https://www.npmjs.com/package/temtem-promise-v1)
|
4
|
-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
3
|
+
[![NPM Version](https://img.shields.io/npm/v/temtem-promise-v1)](https://www.npmjs.com/package/@ryyseexvi/temtem-promise-v1)
|
5
4
|
|
6
5
|
A modern TypeScript wrapper for the [Temtem API](https://temtem-api.mael.tech), providing easy access to all Temtem game data.
|
7
6
|
|
@@ -14,19 +13,19 @@ npm install temtem-promise-v1
|
|
14
13
|
🚀 Usage
|
15
14
|
|
16
15
|
```ts
|
17
|
-
import {
|
16
|
+
import { TemtemDex } from '@ryyseexvi/temtem-promise-v1';
|
18
17
|
|
19
|
-
const
|
18
|
+
const TemDex = new TemtemDex();
|
20
19
|
|
21
20
|
// Example: Get all Temtems
|
22
|
-
const temtems = await
|
21
|
+
const temtems = await TemDex.getTemtems();
|
23
22
|
|
24
23
|
// Example: Get a specific Temtem with ID
|
25
|
-
const temtem = await
|
24
|
+
const temtem = await TemDex.getTemtemById(1);
|
26
25
|
|
27
26
|
// Example: Get Temtems with specific parameters
|
28
|
-
const filteredTemtems = await
|
29
|
-
names: "Pigepic
|
27
|
+
const filteredTemtems = await TemDex.getTemtems({
|
28
|
+
names: "Pigepic",
|
30
29
|
fields: "name,type",
|
31
30
|
expand: "evolution",
|
32
31
|
weaknesses: true
|
package/package.json
CHANGED