-
Notifications
You must be signed in to change notification settings - Fork 4
Docs Version: 0.3.2
Next version planned features:
-
flexsearch searching
-
proper docs
-
(more)
Latest: dev-2.0.7.1
Bugs:
- When searching with getEquipment, if the query is in English, Chinese, Japanese or Korean, it returns an empty array/nothing if matched.
import { AzurAPIClient } from @azurapi/azurapiReturns a list of ships from GitHub hosted data.
<client>.getShips();Returns a list of equipments from GitHub hosted data.
<client>.getEquipments();Returns a list of chapters from GitHub hosted data.
<client>.getChapters();Returns a list of voice lines from GitHub hosted data.
<client>.getVoicelines();Returns a list of barragess from GitHub hosted data.
<client>.getBarrages();Gets ship by query.
Params:
query: string, the query (id or name)
<client>.getShip('query');Get ship by faction.
Params:
faction: string, the faction to find ships from (Type: Nationality)
<client>.getShipByFaction('faction');Gets equipment by query
Params:
query: string, the query (equipment name)
<client>.getEquipment('query');Gets chapter by chapter number or chapter number & section
Params:
query: string, the query (chapter number)
section: (optional) string, the query (section number/name)
<client>.getChapter('query', 'section');Gets voice line by query
Params:
query: string, the query (ship id or ship name)
<client>.getVoiceline('query');Gets barrage by query
Params:
query: string, the query (barrage ID)
<client>.getBarrage('query');npm run compile
npm run test
npm run lint
"dependencies": {
"@augu/orchid": "1.6.5",
},
"devDependencies": {
"@augu/eslint-config": "1.8.2",
"@types/jest": "26.0.14",
"@types/node": "14.11.2",
"@typescript-eslint/eslint-plugin": "4.2.0",
"@typescript-eslint/parser": "4.2.0",
"eslint": "^7.9.0",
"jest": "26.4.2",
"ts-jest": "26.4.0",
"typescript": "4.0.3"
}[NEW!]
Instructions:
-
cdinto theclidirectory -
run
npm run build -
ENJOYYYY
or
- sudo npm link
or
- install globally (npm package coming soon maybe?)
How to use:
-
cdinto theclidirectory -
MacOS and Linux:
./acli-macosor./acli-linuxWindows:
./acli-windows.exeor double-click the exe fileJust NodeJS:
node acli.js
Its a test tool.