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
⭐ 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
- ES import style
or in CommonJS
CommonJS styleWe receive data for an account with uid
618285856
and console.log it
📖 Full example
Last updated