You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ShipGirl Project. Saratoga. (c) Azurlane for Saratoga.
Saratoga is an open source library that stores, fetches, updates, and outputs Shipgirl related data from Azur Lane.
Inspired by AzurApi-JS; Saratoga aims to give you most of the functionality + ability to hot reload your data without restarting your service.
This homepage will contain the most basic way of using this library.
Basic example of getting a shipfu
const{ createServer }=require('http');const{ Saratoga }=require('saratoga');constclient=newSaratoga();constonRequest=(req,res)=>{if(!client.ready){res.write('Saratoga is not yet ready!');}else{res.write(client.ships.getByEnglishName('Saratoga'));}res.end();};createServer(onRequest).listen(8080);
Basic example of getting an equipment
const{ createServer }=require('http');const{ Saratoga }=require('saratoga');constclient=newSaratoga();constonRequest=(req,res)=>{if(!client.ready){res.write('Saratoga is not yet ready!');}else{res.write(client.equipments.getByEnglishName('四联装130mm副炮Mle1932'));}res.end();};createServer(onRequest).listen(8080);