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

smwcentral.net-jsonapi

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smwcentral.net-jsonapi

JSON API for smwcentral.net

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

smwcentral.net-jsonapi

JSON API for smwcentral.net

Examples

Listing

Parse the listing pages on smwcentral.net

Optional: Filter by name

Code

const { list } = require('smwcentral.net-jsonapi')
const opts = {
  page: 1, // optional
  name: 'luigi' // optional
}

list(opts, console.log)

Output

{
  pages: { current: 1, total: 3 },
  data: [
    {
      title: 'Luigi and the Final Year',
      uri: 'https://www.smwcentral.net/?p=section&a=details&id=15714',
      demo: true,
      featured: false,
      length: 18,
      difficulty: 'Easy',
      authors: [Object],
      rating: 4.5,
      size: 426629,
      download: 'https://dl.smwcentral.net/15714/Luigi%20and%20the%20Final%20Year(Demo).zip',
      date: '2017-06-23T23:17:41Z',
      id: 15714
    },
    ...
  ]
}

Game

Parse a game page on smwcentral.net

Optional: Filter by name

Code

const { game } = require('smwcentral.net-jsonapi')
const gameId = 15695

game(gameId, console.log)

Output

{
  data: {
    title: 'Super Ryu World',
    uri: 'https://www.smwcentral.net/?p=section&a=details&id=15695',
    demo: false,
    featured: false,
    length: 16,
    difficulty: 'Kaizo: Light',
    authors: [Object],
    rating: 4.4,
    size: 166738,
    download: 'https://dl.smwcentral.net/15695/Super%20Ryu%20World.zip',
    date: '2017-06-21T17:40:04Z',
    id: 15695
  }
}

FAQs

Package last updated on 14 Jul 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