/npm-bitsy-parser

Primary LanguageTypeScriptOtherNOASSERTION

@bitsy/parser

A Node.js module that parses bitsy gamedata.

Installation

npm install @bitsy/parser --save
yarn add @bitsy/parser
bower install @bitsy/parser --save

Usage

Javascript

var parser = require('@bitsy/parser');
var world = parser.BitsyParser.parse(gamedata); // gamedata is a string array of lines

TypeScript

import { BitsyParser } from '@bitsy/parser';
const world = BitsyParser.parse(gamedata); // gamedata is a string array of lines