@lucasmod/pokemon.js 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -27
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -12,75 +12,74 @@ Esta é uma versão modificada do pacote original [pokemon.js](https://www.npmjs
12
12
  </p>
13
13
  <br />
14
14
  <p>
15
- <a href="https://www.npmjs.com/package/@lucasmod/pokemon.js"><img src="https://img.shields.io/npm/v/pokemon.js.svg" alt="NPM Version" /></a>
16
- <a href="https://www.npmjs.com/package/pokemon.js"><img src = "https://img.shields.io/npm/dt/pokemon.js.svg" alt="NPM Downloads"/></a>
15
+ <a href="https://www.npmjs.com/package/@lucasmod/pokemon.js"><img src="https://img.shields.io/npm/v/pokemon.js.svg" alt="Versão NPM" /></a>
16
+ <a href="https://www.npmjs.com/package/@lucasmod/pokemon.js"><img src = "https://img.shields.io/npm/dt/pokemon.js.svg" alt="Downloads NPM"/></a>
17
17
  </p>
18
18
  <p>
19
19
  <a href="https://www.npmjs.com/package/@lucasmod/pokemon.js"><img src="https://nodei.co/npm/pokemon.js.png" alt="npm installinfo" /></a>
20
20
  </p>
21
21
  </div>
22
22
 
23
- ## Table Of Contents
23
+ ## Índice
24
24
 
25
- - [About](#about)
26
- - [Installation](#installation)
27
- - [Example Usage](#example-usage)
28
- - [Methods](#methods)
25
+ - [Sobre](#sobre)
26
+ - [Instalação](#instalação)
27
+ - [Exemplo de Uso](#exemplo-de-uso)
28
+ - [Métodos](#métodos)
29
29
  - [Links](#links)
30
30
 
31
- ## About
31
+ ## Sobre
32
32
 
33
- pokemon.js is a [Node.js](https://nodejs.org) module that makes interacting with [PokéAPI](https://pokeapi.co/) easier.
33
+ pokemon.js é um módulo [Node.js](https://nodejs.org) que facilita a interação com a [PokéAPI](https://pokeapi.co/).
34
34
 
35
- ## Installation
35
+ ## Instalação
36
36
 
37
- **Node.js 12.0.0 or newer is required.**
38
- No dependencies are required.
37
+ **Node.js 12.0.0 ou mais recente é necessário.**
38
+ Nenhuma dependência é necessária.
39
39
 
40
40
  `npm install @lucasmod/pokemon.js`
41
41
 
42
- ## Example Usage
42
+ ## Exemplo de Uso
43
43
 
44
44
  ```js
45
45
  import Pokemon from '@lucasmod/pokemon.js';
46
46
 
47
47
  Pokemon.get_pokemon('zorua').then(console.log);
48
48
  ```
49
- ### Methods
49
+ ### Métodos
50
50
 
51
51
  **`get_pokemon(pokemon, fields=[])`**:
52
- Returns data for the pokémon in JSON format.
52
+ Retorna dados do pokémon em formato JSON.
53
53
 
54
54
  **`get_type(name, is_pokemon=false, fields=[])`**:
55
- Returns an Array of the pokemon's types or returns data for the type in JSON format.
55
+ Retorna um Array dos tipos do pokémon ou retorna dados do tipo em formato JSON.
56
56
 
57
57
  **`get_ability(name, is_pokemon=false, fields=[])`**:
58
- Returns an Array of the pokemon's abilities or returns data for the ability in JSON format.
58
+ Retorna um Array das habilidades do pokémon ou retorna dados da habilidade em formato JSON.
59
59
 
60
60
  **`get_evolution_line(pokemon, fields=[])`**:
61
- Returns an Array that contains the evolution line of the pokémon.
61
+ Retorna um Array que contém a linha evolutiva do pokémon.
62
62
 
63
63
  **`get_move(move, fields=[])`**:
64
- Returns data on the move in JSON format.
64
+ Retorna dados sobre o movimento em formato JSON.
65
65
 
66
66
  **`get_nature(nature, fields=[])`**:
67
- Returns an Object that contains the increased and decreased stat caused by the nature.
67
+ Retorna um Objeto que contém o atributo aumentado e diminuído causado pela natureza.
68
68
 
69
69
  **`get_item(item, fields=[])`**:
70
- Returns data on the item in JSON format.
70
+ Retorna dados sobre o item em formato JSON.
71
71
 
72
72
  **`get_generation(generation, fields=[])`**:
73
- Returns data on the generation in JSON format.
73
+ Retorna dados sobre a geração em formato JSON.
74
74
 
75
75
  **`get_region(region, fields=[])`**:
76
- Returns data on the region in JSON format.
76
+ Retorna dados sobre a região em formato JSON.
77
77
 
78
78
  **`get_all(type)`**:
79
- Returns an Array containing names of all the specified resource type.
79
+ Retorna um Array contendo nomes de todos os recursos do tipo especificado.
80
80
 
81
81
  ## Links
82
82
 
83
- - [NPM](https://www.npmjs.com/package/pokemon.js)
83
+ - [NPM](https://www.npmjs.com/package/@lucasmod/pokemon.js)
84
84
  - [GitHub](https://github.com/musubi3/pokemon.js.git)
85
- - [PokéAPI](https://pokeapi.co/)
86
-
85
+ - [PokéAPI](https://pokeapi.co/)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "test": "node ./module_test/test.js"
4
4
  },
5
5
  "name": "@lucasmod/pokemon.js",
6
- "version": "2.1.2",
6
+ "version": "2.1.3",
7
7
  "description": "Versão corrigida do pokemon.js com suporte a ESM e créditos para lucasmod",
8
8
  "author": "lucasmod",
9
9
  "license": "ISC",
@@ -22,7 +22,8 @@
22
22
  "pokeapi",
23
23
  "javascript",
24
24
  "js",
25
- "api"
25
+ "api",
26
+ "esm"
26
27
  ],
27
28
  "dependencies": {
28
29
  "node-fetch": "^3.3.2"