Git Product home page Git Product logo

mgo's Introduction

mgo

mgo fetches the status of the mgo servers

local build

npm install .
npm run build

important

i scraped this data from konami's own website, but who knows if the servers are actually up or down. i actually wrote this because the pc version was down for maintenance even after konami's own website status said they were up.

also note at anytime konami can decide to just remove this page and break this module, or they could decide to block your ip. WHO KNOWS, BUT IT'S NOT MY PROBLEM. if they just change the url it's pointed out then feel free to submit an issue or a pr.

example

'use strict';

import mgo from 'mgo'

mgo.get((err, results) => {
  console.log("JSON RESULTS: ", results)
}

sample json output

[
  {
    "system_alias": "ps4",
    "state": "st0",
    "system_name": "PlayStation4"
  },
  {
    "system_alias": "xone",
    "state": "st0",
    "system_name": "Xbox One"
  },
  {
    "system_alias": "pc",
    "state": "st0",
    "system_name": "Steam(PC)"
  },
  {
    "system_alias": "ps3",
    "state": "st0",
    "system_name": "PlayStation3"
  },
  {
    "system_alias": "x360",
    "state": "st0",
    "system_name": "Xbox 360"
  }
]

license

ISC

author

Shuan Wang ([email protected])

mgo's People

Contributors

swang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.