pokemon-tcg-pocket-database 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # Pokemon Trading Card Game Pocket Cards Database
2
+
3
+ ## Overview
4
+
5
+ This npm package provides a database of Pokemon Trading Card Game Pocket cards. It includes two JSON files: `cards.json` and `sets.json`, which contain detailed information about the cards and sets, respectively.
6
+
7
+ ## Installation
8
+
9
+ To install the package, use the following command:
10
+
11
+ ```bash
12
+ npm install -D pokemon-tcg-pocket-database
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ### Importing the Database
18
+
19
+ You can import the database into your project using the following code:
20
+
21
+ ```js
22
+ import cards from "pokemon-tcg-pocket-database/dist/cards.json";
23
+ import sets from "pokemon-tcg-pocket-database/dist/sets.json";
24
+ ```
25
+
26
+ ### Accessing the Data
27
+
28
+ The `cards.json` file contains an array of card objects, each with the following properties:
29
+ - `set`: The set code of the card.
30
+ - `number`: The card number within the set.
31
+ - `rarity`: The rarity of the card.
32
+ - `rarityCode`: The rarity code of the card.
33
+ - `imageName`: The name of the card image file.
34
+ - `label`: An object containing the slug and English name of the card.
35
+
36
+ Rarity codes are as follows:
37
+ - C: "Common",
38
+ - U: "Uncommon",
39
+ - R: "Rare",
40
+ - RR: "Double Rare",
41
+ - SR: "Super Rare",
42
+ - AR: "Art Rare",
43
+ - SAR: "Special Art Rare",
44
+ - IM: "Immersive Rare",
45
+ - UR: "Crown Rare",
46
+
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "pokemon-tcg-pocket-database",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Pokemon TCG Pocket complete cards and sets JSON database",
5
5
  "files": [
6
- "cards.json",
7
- "sets.json"
6
+ "dist/cards.json",
7
+ "dist/sets.json"
8
8
  ],
9
9
  "keywords": [
10
10
  "pokemon",
@@ -14,6 +14,14 @@
14
14
  ],
15
15
  "author": "flibustier",
16
16
  "license": "MIT",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/flibustier/pokemon-tcg-pocket-database.git"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/flibustier/pokemon-tcg-pocket-database/issues"
23
+ },
24
+ "homepage": "https://github.com/flibustier/pokemon-tcg-pocket-database#readme",
17
25
  "devDependencies": {
18
26
  "cheerio": "1.0.0"
19
27
  },
File without changes
File without changes