Coder Social home page Coder Social logo

mk-tracks's Introduction

mk-tracks

JSON-based Mario Kart Tracks Library.

npm version License: MIT

Support games (abbreviation)

  • MKDS
  • MKW
  • MK7
  • MK8

Usage

$ npm i mk-tracks
import { data } from 'mk-tracks'

console.log(data)

or

const data = require('mk-tracks')

console.log(data)

Structure

Return an array of Game type. (Return Game[])

Game Type

Expressed in TypeScript, it looks like the following type.

type Game = {
  title_jp: string
  title_en: string
  title_abbreviation: string
  cups: [
    {
      id: number
      name_en: string
      name_jp: string
      tracks: [
        {
          id: number
          name_en: string
          name_jp: string
          abbreviation: string
        }
      ]
    }
  ]
}

Example

[
  {
    "title_jp": "マリオカート DS",
    "title_en": "Mario Kart DS",
    "title_abbreviation": "MKDS",
    "cups": [
      {
        "id": 0,
        "name_en": "Mushroom Cup",
        "name_jp": "キノコカップ",
        "tracks": [
          {
            "id": 0,
            "name_en": "Figure 8 Circuit",
            "name_jp": "エイトクロスサーキット",
            "abbreviation": "F8C"
          },
          {
            "id": 1,
            "name_en": "Yoshi Falls",
            "name_jp": "ヨッシーフォールズ",
            "abbreviation": "YF"
          },
          {
            "id": 2,
            "name_en": "Cheep Cheep Beach",
            "name_jp": "プクプクビーチ",
            "abbreviation": "CCB"
          },
          {
            "id": 3,
            "name_en": "Luigi's Mansion",
            "name_jp": "ルイージマンション",
            "abbreviation": "LM"
          }
        ]
      },
      .
      .
      .
]

Versioning

  • Major: Add breaking change
  • Minor: Update database, Add new feature (No breaking change)
  • Patch: Fix database, Fix bug

mk-tracks's People

Contributors

iamtakagi avatar

Stargazers

 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.