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

@r6stats/node

v4.0.0-alpha3

Published

R6Stats API Client for NodeJS

Downloads

12

Readme

R6Stats API Client for NodeJS

Discord npm (scoped) David

This open-source library is provided by the R6Stats team as a means of accessing the public R6Stats web API.

Installation

npm install @r6stats/node --save

If you are using an older version of the R6Stats API (v2, currently v3), you'll need to install an older version of the library.

npm install @r6stats/[email protected] --save

API Key

Although the R6Stats API is currently provided free of charge, we do require an API key to maintain access control. You can obtain an API key via our Discord Server or via [email protected].

Usage

Version 3.x

import R6StatsAPI from '@r6stats/node'

// create an instance of the API client
const api = new R6StatsAPI({ apiKey: 'xxx' })
// valid platform options: pc, xbox, ps4

// get general stats (kills, deaths, etc.)
const { data: player } = await api.playerStats('KingGeorge', 'pc')
console.log(player.username, player.stats.general.kills)

// get operator stats
const { data: player } = await api.operatorStats('KingGeorge', 'pc')
console.log(player.username, player.operators[0].name, player.operators[0].kills)

// get weapon stats
const { data: player } = await api.weaponStats('KingGeorge', 'pc')
console.log(player.username, player.weapons[0].name, player.weapons[0].kills)

// get weapon category stats
const { data: player } = await api.weaponCategoryStats('KingGeorge', 'pc')
console.log(player.username, player.categories[0].category, player.categories[0].kills)

// get seasonal stats
const { data: player } = await api.seasonalStats('KingGeorge', 'pc')
// log latest season name and number of wins in the american region
console.log(player.username, player.seasons[0].name, player.seasons[0].regions.ncsa[0].wins)

License

See LICENSE

The R6Stats API Client library may be used in any project given that it does not directly compete with the R6Stats Website or its available applications. The client library is meant for individual usage only. Please direct all licensing questions to [email protected].

R6Stats is a fan-made project and is not affiliated with Ubisoft. Tom Clancy’s, Rainbow Six, The Soldier Icon, Ubisoft and the Ubisoft logo are trademarks of Ubisoft Entertainment. Google Play and the Google Play logo are trademarks of Google LLC. Apple and the Apple Logo are trademarks of Apple Inc. App Store is a service mark of Apple Inc.