0.210928.0 • Published 4 years ago
@kancolle/main v0.210928.0
@kancolle/main
Using KanColle's main.js in Node.js.
Install
yarn add @kancolle/mainUsage
See src/test.js for some working examples. See dist/api for more functions.
Build
To build files in dist:
yarn
yarn build
yarn testdist/main.js is the final patched file.
Todo
- After
main.init()a request toversion.jsonwill be performed withaxios, that won't work due to browser security related issues, more browser simulation is required. Similarly, many functions won't work withoutapi_start2response. For example,main.ShipLoader.getPathneed versions fromapi_start2. - It is better to mock all the things rather than pulling heavy dependencies (like
canvas).