Dungeons & Dragons 5th Edition - SRD Database
npm install dnd5-srdjavascript
const monsters = require('dnd5-srd/monsters');
const aboleth = monsters.find(monster => monster.name === 'Aboleth');
console.log(aboleth.hit_points);
`
$3
`javascript
const dnd = require('dnd5-srd');
const monsters = dnd.data.monsters;
const aboleth = monsters.find(monster => monster.name === 'Aboleth');
console.log(aboleth.hit_points);
`
Reference
Currently there's no documentation for how the data looks like. You'll have to explore the JSON files to figure that out.
The following data types are available:
* abilityScores
* classes
* conditions
* damageTypes
* equipment
* equipmentCategories
* features
* languages
* levels
* magicSchools
* monsters
* proficiencies
* races
* skills
* spellcasting
* spells
* startingEquipment
* subclasses
* subraces
* traits
* weaponProperties`