3.1.5 • Published 5 days ago

smogon v3.1.5

Weekly downloads
397
License
MIT
Repository
github
Last release
5 days ago

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.

3.1.5

5 days ago

3.1.4

1 month ago

3.1.3

2 months ago

3.1.2

3 months ago

3.1.1

4 months ago

3.1.0

4 months ago

2.2.14

6 months ago

3.0.1

5 months ago

3.0.0

6 months ago

2.2.13

7 months ago

2.2.11

9 months ago

2.2.12

8 months ago

2.2.10

10 months ago

2.2.9

11 months ago

2.2.3

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

2.2.8

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.15

2 years ago

2.0.16

2 years ago

2.0.17

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.9

2 years ago

2.0.10

2 years ago

2.0.8

3 years ago

2.0.7

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.6

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.5

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago