New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nintendo-switch-eshop

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nintendo-switch-eshop

Crawler for Nintendo Switch eShop.

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74
decreased by-59.78%
Maintainers
1
Weekly downloads
 
Created
Source

About

nitendo-switch-eshop is a npm lib module written to extract Nintendo Switch's eShop game and pricing information.

Installation

To install it just type the following at your command line

npm install --save nitendo-switch-eshop

And require it in your node module as follows:

const SwitchEshop = require('nitendo-switch-eshop');

Functions

getGamesAmerica()Promise<Array<Object>>

Fetches all games on american eshops. Paginates every 200 games.

getGamesJapan()Promise<Array<Object>>

Fetches all games on japanese eshop. Paginates every 16 games.

getGamesEurope()Promise<Array<Object>>

Fetches all games on european eshop. Paginates every 9999 games.

getShopsByCountryCodes(countryCodes, gamecode, region)Promise<Array<Object>>

Gets all active eshops given a list of countries.

getShopsAmerica()Promise<Array<Object>>

Gets all active eshops on american countries. This method will launch several requests at nintendo web services, so don't abuse it.

getShopsEurope()Promise<Array<Object>>

Gets all active eshops on european countries. Please note that South Africa and Oceania countries are included. This method will launch several requests at nintendo web services, so don't abuse it.

getShopsAsia()Promise<Array<Object>>

Gets all active eshops on asian countries. This method will launch several requests at nintendo web services, so don't abuse it.

getActiveShops()Promise<Array<Object>>

Gets all active eshops. This method will launch several requests at nintendo web services, so don't abuse it.

getPrices(country, gameIds)Promise<any>

Get pricing information for the requested games. Paginates every 50 games.

parseGameCode(game, region)string

Parses the game code to extract the cross-region protion.

parseNSUID(game, region)string

Extracts NSUID information from the game object.

Region : enum

Region code constant.

Read only: true
Properties

NameTypeDefault
AMERICASnumber1
EUROPEnumber2
ASIAnumber3

getGamesAmerica() ⇒ Promise<Array<Object>>

Fetches all games on american eshops. Paginates every 200 games.

Returns: Promise<Array<Object>> - Promise containing all the games.

getGamesJapan() ⇒ Promise<Array<Object>>

Fetches all games on japanese eshop. Paginates every 16 games.

Returns: Promise<Array<Object>> - Promise containing all the games.

getGamesEurope() ⇒ Promise<Array<Object>>

Fetches all games on european eshop. Paginates every 9999 games.

Returns: Promise<Array<Object>> - Promise containing all the games.

getShopsByCountryCodes(countryCodes, gamecode, region) ⇒ Promise<Array<Object>>

Gets all active eshops given a list of countries.

Returns: Promise<Array<Object>> - A list of shop objects with country code, name and default currency.

ParamTypeDescription
countryCodesArray<string>A list of 2 digit country codes for every country eshop to lookup. (ISO 3166-1 alpha-2 country codes)
gamecodestringA 14 digits game code from the desired region.
regionanyA region id that will be appendend in the final shop object for filtering purposes.

getShopsAmerica() ⇒ Promise<Array<Object>>

Gets all active eshops on american countries. This method will launch several requests at nintendo web services, so don't abuse it.

Returns: Promise<Array<Object>> - A list of shop objects with country code, name and default currency.

getShopsEurope() ⇒ Promise<Array<Object>>

Gets all active eshops on european countries. Please note that South Africa and Oceania countries are included. This method will launch several requests at nintendo web services, so don't abuse it.

Returns: Promise<Array<Object>> - A list of shop objects with country code, name and default currency.

getShopsAsia() ⇒ Promise<Array<Object>>

Gets all active eshops on asian countries. This method will launch several requests at nintendo web services, so don't abuse it.

Returns: Promise<Array<Object>> - A list of shop objects with country code, name and default currency.

getActiveShops() ⇒ Promise<Array<Object>>

Gets all active eshops. This method will launch several requests at nintendo web services, so don't abuse it.

Returns: Promise<Array<Object>> - A list of shop objects with country code, name and default currency.

getPrices(country, gameIds) ⇒ Promise<any>

Get pricing information for the requested games. Paginates every 50 games.

Returns: Promise<any> - A promise containing the pricing information.

ParamTypeDescription
countrystringA two digit country code. (ISO 3166-1 alpha-2 country code)
gameIdsArray<string> | stringOne or more NSUID of the corresponding games.

parseGameCode(game, region) ⇒ string

Parses the game code to extract the cross-region protion.

Returns: string - The 4-digit resulting game code.

ParamTypeDescription
gameObjectThe game object returned from one of the other methods.
regionnumberRegion code. (use the Region constant)

parseNSUID(game, region) ⇒ string

Extracts NSUID information from the game object.

Returns: string - The 14-digit NSUID.

ParamTypeDescription
gameObjectThe game object returned from one of the other methods.
regionnumberRegion code. (use the Region constant)

Keywords

FAQs

Package last updated on 05 Jun 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc