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

yuniteapi.js

v1.0.0

Published

Node.js API Wrapper for Yunite API

Downloads

2

Readme

yuniteapi.js

yuniteapi.js is a node.js API wrapper for Yunite allowing you to easily interact with their API.

Installation

To install yuniteapi.js, run the following command into your terminal from your bot folder:

Install yuniteapi.js:

npm install yuniteapi.js

Example Usage

const YuniteAPI = require('yuniteapi.js');
const Yunite = new YuniteAPI('Yunite API Key', 'Guild ID');

Yunite.registrationData(['array of user Ids']).then((result => console.log(result)));

Methods

registrationData(['array of user Ids'])

Access registration data of a guild and know which Discord user is linked to which Epic user.

Yunite.registrationData(['123456789123456789', '987654321987654321']).then((result => console.log(result)));

addPlayerToQueue(userId)

Join a player into a custom game

Yunite.addPlayerToQueue('123456789123456789').then((result => console.log(result)));

blockUser(userId, options)

Block a user from using Yunite on provided guild

Yunite.blockUser('123456789123456789', { reason: 'Test', blockLinkedEpic: true }).then((result => console.log(result)));

blockEpic(epicId, options)

Block an epic account from using Yunite on provided guild

Yunite.blockEpic('epicId', { reason: 'Test', blockLinkedUser: true }).then((result => console.log(result)));

unblockUser(userId)

Unblock a user from Yunite on provided guild

Yunite.unblockUser('123456789123456789').then((result => console.log(result)));

unblockEpic(epicId)

Unblock an epic account from Yunite on provided guild

Yunite.unblockEpic('epicId').then((result => console.log(result)));

listTournaments()

Get list of tournaments

Yunite.listTournaments().then((result => console.log(result)));

tournamentLeaderboards(tournamentId)

Get leaderboard of tournament

Yunite.tournamentLeaderboards('bd4e8807-629f-4820-9207-13d899e76a67').then((result => console.log(result)));

tournamentMatches(tournamentId)

Get list of matches in tournament

Yunite.tournamentMatches('bd4e8807-629f-4820-9207-13d899e76a67').then((result => console.log(result)));

sessionLeaderboard(tournamentId, sessionId)

Get leaderboard of single match

Yunite.tournamentMatches('bd4e8807-629f-4820-9207-13d899e76a67', '56acd6f7627a4763b1b38c58f3fe5169').then((result => console.log(result)));