> npm i @ozrageharm/epiccore@latest
Documentation can be found here
Get an auth code here by logging in.
const epiccore = require('@ozrageharm/epiccore');
(async () => {
const authCode = "your-auth-code-here"
const auth = await epiccore.login({ method: "code", value: authCode });
console.log(`Logged in as: ${auth.displayName}`)
})();const epiccore = require('@ozrageharm/epiccore');
(async () => {
try {
console.log(epiccore.clientTokens)
} catch (error) {
console.error("An error occurred:", error);
}
})();const { getPlaylist, getAllPlaylists } = require('@ozrageharm/epiccore');
const playlist_id = "playlist-id-here";
const playlist = getPlaylist(playlist_id);
const playlists = getAllPlaylists();
console.log(playlist, playlists)const { getCosmetic, getPath } = require('@ozrageharm/epiccore');
// Cosmetic name and type are required for searching by name, but are not required for searching by id
const cosmetic = getCosmetic("cosmetic-name (optional)", "cosmetic-type (optional)", "cosmetic-id (optional)")
const path = getPath(cosmetic.path)
console.log(cosmetic, path)const { getStatsByName, getStatsById } = require('@ozrageharm/epiccore');
const apiKey = "api-key" // fortnite-api.com api key
const acc_by_name = getStatsByName("acc-username", apiKey)
const acc_by_id = getStatsById("acc-id", apiKey)
console.log(acc_by_name, acc_by_id)