# Quick Start | Installation

## ⚙️ Installation

When installing the module, the necessary assets of the current version of the game are automatically loaded. You can also specify the languages for which to download localization.

Full list of supported languages - ***EN, RU, CHS, CHT, DE, ES, FR, ID, JP, KR, PT, TH, VI***

They should be listed through «**`,`**» (without a space). If you do not specify them, then *English* will be downloaded. For example - `npm i enkanetwork --languages=EN,RU`

{% tabs %}
{% tab title="npm" %}

```shell
npm i enkanetwork --languages=EN
```

{% endtab %}

{% tab title="yarn" %}

```bash
yarn add enkanetwork --languages=EN
```

{% endtab %}

{% tab title="pnpm" %}

```shell
pnpm add enkanetwork --languages=EN
```

{% endtab %}
{% endtabs %}

## ⭐ Usage

We have installed the library. Now it's time to start writing the simplest example in CommonJS style.

1. Create a file in the folder of our project which we will call «**`index.js`**» or «**`index.mjs`**» for ECMAScript style
2. Import the library and create an instance of the class
3.

```
<pre class="language-typescript" data-title="ES import style"><code class="lang-typescript">import { EnkaNetwork } from "enkanetwork";
```

```
const enka = new EnkaNetwork();
</code></pre>
```

4\.  or in CommonJS

```
<pre class="language-javascript" data-title="CommonJS style"><code class="lang-javascript">const { EnkaNetwork } = require("enkanetwork");

const enka = new EnkaNetwork();
</code></pre>
```

5\. We receive data for an account with uid **`618285856`** and console.log it
6\.

````
```typescript
enka.fetchUser(618285856).then(console.log);
```
````

<figure><img src="https://129309102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHRuRVaMzLuUsL0mMhv72%2Fuploads%2FDfahxCEkBwYM49PxHwSc%2Fimage.png?alt=media&#x26;token=2fc40052-11ef-4dc4-a345-a72d950dc3bd" alt=""><figcaption></figcaption></figure>

## 📖 Full example

{% tabs %}
{% tab title="ES import style" %}

```typescript
import { EnkaNetwork } from "enkanetwork";

const enka = new EnkaNetwork();

enka.fetchUser(618285856).then(console.log);

```

{% endtab %}

{% tab title="CommonJS style" %}

```javascript
const { EnkaNetwork } = require("enkanetwork");

const enka = new EnkaNetwork();

enka.fetchUser(618285856).then(console.log);

```

{% endtab %}
{% endtabs %}
