Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azurlane

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azurlane

Api wrapper for the azur lane api

  • 0.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

AzurLane

Api wrapper for my azur lane api

Example

const AzurLane = require("azurlane");
const azurlane = new AzurLane();

async function main() {
    const ship = await azurlane.ship("Akagi");
    console.log(`${ship.names.en}'s rarity is ${ship.rarity}`); // IJN Akagi's rarity is Super Rare

    const build = await azurlane.buildInfo("00:24:00");
    console.log(`Ships matching time ${build.time}: ${build.ships.join(", ")}`); // Ships matching time 00:24:00: Foxhound, Fortune, Dace, Albacore
}

// Also catches any api errors that might occur like 400, 429, 500 http errors
// Api errors extend the default error class, have a look at https://kurozeropb.github.io/AzurLane/classes/apierror.html for information
main().catch(console.error);

Ship Data

{   
    "id": "224",
    "names": {
        "full": "IJN Akagi (cn: 凰; jp: 赤城)",
        "en": "IJN Akagi",
        "cn": "凰",
        "jp": "赤城"
    },
    "thumbnail": "https://azurlane.koumakan.jp/w/images/3/3f/AkagiIcon.png",
    "skins": [
        { 
            "title": "Default",
            "image": "https://azurlane.koumakan.jp/w/images/thumb/0/06/Akagi.png/600px-Akagi.png"
        },
        {
            "title": "Paradise Amaryllis",
            "image": "https://azurlane.koumakan.jp/w/images/thumb/3/39/AkagiSummer.png/600px-AkagiSummer.png"
        },
        {
            "title": "Plum and Snow",
            "image": "https://azurlane.koumakan.jp/w/images/thumb/d/d0/AkagiNew_Year.png/533px-AkagiNew_Year.png"
        },
        {
            "title": "Deep Crimson Poppy",
            "image": "https://azurlane.koumakan.jp/w/images/thumb/6/65/AkagiPledge.png/505px-AkagiPledge.png"
        } 
    ],
    "buildTime": "Drop Only",
    "rarity": "Super Rare",
    "stars": {
        "value": "★★★☆☆☆",
        "count": 3
    },
    "class": "Akagi",
    "nationality": "Sakura Empire",
    "hullType": "Aircraft Carrier"
}

Build Time Data

{
    "time": "00:24:00",
    "ships": [
        "Foxhound",
        "Fortune",
        "Dace",
        "Albacore"
    ]
}

Keywords

FAQs

Package last updated on 15 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc