Core library for writing applications related to Endless Online.
npm install eolib



A core TypeScript library for writing applications related to Endless Online.
Install eolib using npm:
``bash`
npm install --save eolib
Or yarn:
`bash`
yarn add eolib
Read and write the following EO data structures:
- Client packets
- Server packets
- Endless Map Files (EMF)
- Endless Item Files (EIF)
- Endless NPC Files (ENF)
- Endless Spell Files (ESF)
- Endless Class Files (ECF)
Utilities:
- Data reader
- Data writer
- Number encoding
- String encoding
- Data encryption
- Packet sequencer
Node.js is required to install dependencies and run scripts via npm.
| Command | Description |
| ----------------------- | --------------------------------------------------------------------------- |
| npm install | Install project dependencies |npm run format
| | Format changed files using Prettier |npm run generate
| | Generate code based on eo-protocol |npm run build
| | Build cjs and esm with production settings |npm run build:cjs
| | Build cjs with production settings |npm run build:esm
| | Build esm with production settings |npm test
| | Run unit tests |npm run test:coverage` | Run unit tests with coverage |
|