@kancolle/main
v0.210928.0
Published
Using KanColle's main.js in Node.js
Downloads
6
Readme
@kancolle/main
Using KanColle's main.js
in Node.js.
Install
yarn add @kancolle/main
Usage
See src/test.js
for some working examples. See dist/api
for more functions.
Build
To build files in dist
:
yarn
yarn build
yarn test
dist/main.js
is the final patched file.
Todo
- After
main.init()
a request toversion.json
will 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_start2
response. For example,main.ShipLoader.getPath
need versions fromapi_start2
. - It is better to mock all the things rather than pulling heavy dependencies (like
canvas
).