New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

smogon

Package Overview
Dependencies
Maintainers
2
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smogon

Low-level wrapper around Smogon's analyses and usage statistics

latest
Source
npmnpm
Version
4.0.5
Version published
Weekly downloads
1.8K
2%
Maintainers
2
Weekly downloads
 
Created
Source

smogon

Test Status License npm version

A typed, low-level wrapper around Smogon's analysis and statistics endpoints used to ergonomically fetch raw data via point queries from the source. smogon has zero-dependencies and is agnostic to your project's choice of network layer - this package helps you build a request and process the response. There is support for scraping analyses from Smogon's HTML (discouraged), directly performing Dex RPCs, dealing with naming and cutoff discontinuities in the usage statistics available from https://smogon.com/stats/, and determining the optimal dates to fetch statistics for a given format.

import {Analyses, Statistics} from 'smogon';

// Performing a Dex RPC
const analysis = Analyses.process(await request(Analyses.request('Mr. Mime', 3)));

// Determining the 'best' date to fetch weighted statistics for
const format = 'gen6vgc2016';
const latest = await Statistics.latestDate(format, true);
const stats = Stats.process(await request(Statistics.url(latest.date, format)));

This package is distributed under the terms of the MIT License.

FAQs

Package last updated on 04 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts