Skip to content

shiftregister-vg/xwing-data-module

Repository files navigation

Build Status npm version Codacy Badge

xwing-data-module

xwing-data packaged as modules

This package creates a module accessible version of the data directory in the xwing-data package.

Installation

Yarn: yarn add xwing-data-module

NPM: npm install --save xwing-data-module

Usage

The following keys are available from the xwing-data-module package. They all contain arrays of objects.

data, {                     // all sub-arrays
  conditions,               // conditions
  damageDeckCore,           // damage deck from the core set
  damageDeckCoreTFA,        // damage deck from the force awakens core set
  damageDeckRebelTransport, // damage deck from the rebel transport expansion
  pilots,                   // pilots
  referenceCards,           // reference cards
  ships,                    // ships
  sources,                  // expansions
  upgrades                  // upgrades
}

Require:

var data = require('xwing-data-module')

or

var ships = require('xwing-data-module').ships

Import:

import data from 'xwing-data-module'

or

import { ships } from 'xwing-data-module'

Projects using the xwing-data-module package

  • Tython: Backend application for Deep Core
  • (Add your project via a PR or submit an issue)