npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pe-paladins.js

v4.0.1

Published

A strongly typed fork of paladins.js, used by Paladins Edge

Downloads

20

Readme

pe-paladins.js

NPM License Downloads Production Test & Deploy

A strongly typed fork of paladins.js, used by Paladins Edge

  • Well maintained and up-to-date library
  • All of the methods have the exact response type
  • Updated champion enums to include Betty la Bomba as per Monstercat patch

Changelog

v4.0.1

  • BREAKING CHANGE: Removed getBountyItems api
  • Added getPlayerQueueStatsBatch api
  • Added getLeaderboard api
  • Updated dependencies internally

Reason: Paladins bounty store has been closed, this changes removes the api from being used in the future

v3.6.1

  • Added support for Omen
  • Added Bans 7,8 in match details
  • Removed Ranked Controller
  • Renamed Ranked Keyboard to Ranked

v3.5.0

  • Added support for Nyx

v3.4.0

  • Added support for Kasumi
  • Added support for Choose Any

v3.3.4

  • Added Region in getMatchIdsByQueue api response

v3.3.3

  • Added support for Caspian

v3.3.2

  • Added getDevId method
  • Added forceRefresh param in getRequestsInfo

v3.3.0

  • Added support for Lillith
  • Upgrade dependencies
  • Replaced moment library with dayjs

v3.2.8

  • Updated readme

v3.2.6

  • Added support for Betty la Bomba

v3.2.5

  • Added Siege: Beyond queue in Enums, Strings and Data

v3.2.4

  • Updated Data, Enums, Strings for champion VII
  • Updated enums for getMatchDetails, getPlayerMatchHistory
  • Added TaskForce to Enums
  • Fixed champion_id type in ChampionCard

v3.2.1

  • BREAKING CHANGE: renamed GetMatchIDSByQueue ApiResponse interface to GetMatchIdsByQueue
  • BREAKING CHANGE: renamed Data objects from capital to pascal case and changed keys from strings to enums
  • Refactored ApiResponse, Data, Enums, Strings into their own folders
  • Updated documentation for a few API methods
  • Updated getPlayerQueueStats and getMatchIdsByQueue queueId params to be Enums.Queue instead of number
  • Updated for ApiResponse property

Reason: these changes are a part of the library refactoring and removing clutter, and making things consistent. These will be the last set of breaking changes.

Install

$ npm install pe-paladins.js

Usage

TypeScript

import { API, ApiResponse } from "pe-paladins.js";

const api = new API({
  devId: "your dev id",
  authKey: "your authKey",
  languageId: 1, // optional
}); // API loaded and ready to go.

const foo = async () => {
  let response: ApiResponse.GetDataUsage
  try {
    response = await api.getDataUsage()
    // Do something with response
  } catch(error) {
    // Handle the error
  }
}

JavaScript

const { API } = require("pe-paladins.js");

const api = new API({
  devId: "your dev id",
  authKey: "your authKey",
  languageId: 1, // optional
}); // API loaded and ready to go.

const foo = async () => {
  let response;
  try {
    response = await api.getDataUsage()
    // Do something with response
  } catch(error) {
    // Handle the error
  }
}

Documentation / Methods

You can view all the available methods and documentation on pe-paladins.paladinsedge.app. Some of the methods are removed/changed in pe-paladins.js compared to paladins.js