Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 703 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 703 Bytes

coh-content-db

City of Heroes Content Database

Installation

npm install coh-content-db

Usage

Initialize the database, then load a server-group data pack, such as coh-content-db-homecoming:

import {CohContentDb} from "coh-content-db";
import {Homecoming} from "coh-content-db-homecoming";

const contentDb = new CohContentDb();
contentDb.load(new Homecoming());

Once loaded, you can start retrieving loaded data using the keys associated with the various content.

List Loaded Server Groups:

contentDb.getServerGroups();

Get a Server Group by key:

contentDb.getServerGroup("serverGroupKey");

Build

npm run build

Deploy

npm package