harry-potter-spells

0.0.4 • Public • Published

harry-potter-spells Build Status

List of Harry Potter spells

Install

$ yarn add harry-potter-spells

Usage

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"
  },
  ...
]
*/

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

Package Sidebar

Install

npm i harry-potter-spells

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

113 kB

Total Files

12

Last publish

Collaborators

  • bukinoshita