π¦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
npm i enkanetwork --languages=EN
β Usage
We have installed the library. Now it's time to start writing the simplest example in CommonJS style.
Create a file in the folder of our project which we will call Β«
index.js
Β» or Β«index.mjs
Β» for ECMAScript styleImport the library and create an instance of the class
import { EnkaNetwork } from "enkanetwork"; const enka = new EnkaNetwork();
or in CommonJS
const { EnkaNetwork } = require("enkanetwork"); const enka = new EnkaNetwork();
We receive data for an account with uid
618285856
and console.log itenka.fetchUser(618285856).then(console.log);

π Full example
import { EnkaNetwork } from "enkanetwork";
const enka = new EnkaNetwork();
enka.fetchUser(618285856).then(console.log);
Last updated
Was this helpful?