1.3.2 • Published 4 years ago

dnd-api-remastered v1.3.2

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Dungeons and Dragons API Wrapper

This is a fork of this because the old one wasn't functioning correctly and isn't properly maintained anymore

This is a Node API Wrapper of the D&D 5th Edition API

Key Features

  • Access to all API endpoints using convenient methods

  • The only dependency is node-fetch => Promise based

  • Typings for all JSON response types of the API

Docs

Every major route in the API is portrayed in form of a static class. Let's take a look at an example:

JavaScript: const monsters = require("dnd-api").Monsters;

const response = await monsters.get("Cat");

TypeScript: import { Monsters } from "dnd-api";

const response = await Monsters.get("Cat");

Get a list of, for example, Monsters: const response = await Monsters.list()

Filter the list by initial or more letters: const response = await Monsters.list("a")

=> returns a list of all Monsters beginning with "a"

  • Note: case-sensitivity is taken care of by the library
1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago