List of Harry Potter spells
Install
$ yarn add harry-potter-spells
Usage
const harryPotterSpells = console// => { "name": "Crucio", "type": "curse", "effect": "Tortures opponent" } console/*[{ "name": "Crucio", "type": "curse", "effect": "Tortures opponent" }, ...]*/
Demo

API
harryPotterSpells()
.random()
Returns an object
Get a random spell
.all
Returns an array
Get all spells
.spell(input)
Returns an object
Get a specific spell
input
Type: string
Spell's name
License
MIT © Bu Kinoshita