City of Heroes Content Database
npm install coh-content-db
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.
contentDb.getServerGroups();
contentDb.getServerGroup("serverGroupKey");
npm run build
npm package