Node library to get information of swgoh parsing swgoh.gg, you can get profile, characters, guild members, ships, units and mods.
const swgoh = require("swgoh").swgoh
//or
import {swgoh} from 'swgoh';
const username= "pikax";
swgoh.profile(username).then(function (p) {
console.log(p);
return swgoh.guild(p.guildUrl);
}).then(console.log);
swgoh.collection(username).then(console.log);
swgoh.ship(username).then(console.log);
const guild = "/g/232/requiem/"; // or {id:232}
swgoh.units(guild).then(console.log);
swgoh.mods(username).then(console.log);
//cached characters & ships (no requests)
import {characters, ships} from 'swgoh';
With TB just released, this library provides easy way to get data from swgoh.gg
yarn add swgoh
npm i swgoh
All notable changes to this project will be documented in this file.
- Cache for Characters & Ship stats
- Added Jest Tests
- Player mods collection
- Fix 7* ships not parse star correctly (#3)
- Added guild units fetch (Same as the swgoh guild unit API )
- Fix "Profile Data undefined" when not showing AllyCode on Swgoh (#2)
- Added support for ships
- Fixed issue with stars when getting collection
- First release, support collection (toons), player info and guild info.
The developer of this application does not have any affiliation with the Capital Games, Disney, Lucasfilm Limited or swgoh.gg.