xwing-data packaged as modules
This package creates a module accessible version of the data directory in the xwing-data package.
Yarn: yarn add xwing-data-module
NPM: npm install --save xwing-data-module
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'