coh-content-db
v1.4.1
Published
City of Heroes Content Database
Downloads
18
Readme
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