0.1.2 • Published 5 years ago

dndata-5e v0.1.2

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
5 years ago

dndata-5e

Tools and pipelines for converting 5e character sheet data from the MorePurpleMoreBetter versions to node modules, etc

Node Module

The current node module is super simple.

var dndata = require('dndata-5e').data;

console.log(dndata.SpellsList["alarm"].description);
/* Produces:
 "Door, window, or 20-ft cube area; audible (60 ft) or mental alarm (1 mile) if undesignated crea enters" */

It only has the freely available/SRD content by default, just like the MPMB sheet. However, a very basic import is available:

var dndata = require('dndata-5e').data;
var fs = require('fs');

dndata.addContent(fs.readFileSync("path/to/mpmb-formatted-file.js", 'utf8'));
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago