UNPKG

@warriorjs/core

Version:
28 lines (17 loc) 478 B
# @warriorjs/core > WarriorJS core. ## Install ```sh npm install @warriorjs/core ``` ## Usage ```js const warriorjs = require('@warriorjs/core'); import { runLevel } from '@warriorjs/core'); import * as warriorjs from '@warriorjs/core'; ``` ## API Reference ### warriorjs.runLevel(levelConfig: Object, playerCode: string) Runs the given level config with the given player code. ### warriorjs.getLevel(levelConfig: Object) Returns the level for the given level config.