Some useful scripts for generating helpful D&D content in obsidian.md vaults using 5e.tools.
Specifically, these tools pull data from 5etools-mirror-1 Github Repo, which is a fork of the source for 5e.tools website with all of the raw data in JSON format, which is better for parsing than attempting to manually export the data from the website itself.
- This is a Typescript project that runs using Node.js runtime. Install Node.js using NVM (Node Version Manager) then running
nvm use
within the root directory for this project. - This project uses Yarn for dependency management. Install Yarn by following Yarn's installation directions.
- Install NPM dependencies using
yarn install
IMPORTANT: Please only use this tool with source material that you legally own!. 5e.tools is an awesome tool that is freely available for use, so please do not abuse it by using it to pirate from Wizards of the Coast.
To configure which source books that you own,
- Run
yarn start list-books
to view all available source books and their corresponding abbreviations. - Update the
ownedSourceBooks
property of theconfig
variable exported fromsrc/config/config.ts
with the abbreviations of source books you own.
To configure where the output goes, configure the appropriate properties within the config
variable in src/config/config.ts
.
Run yarn start gen all
to generate all the helper files.