List of Harry Potter spells
$ yarn add harry-potter-spells
const harryPotterSpells = require('harry-potter-spells')
console.log(harryPotterSpells.random())
// => { "name": "Crucio", "type": "curse", "effect": "Tortures opponent" }
console.log(harryPotterSpells.all)
/*
[{
"name": "Crucio",
"type": "curse",
"effect": "Tortures opponent"
},
...
]
*/
Returns an object
Get a random spell
Returns an array
Get all spells
Returns an object
Get a specific spell
Type: string
Spell's name
MIT © Bu Kinoshita