lordotr-library
v1.0.0
Published
A mini library of LOTR characters, including their kind and weapon.
Downloads
4
Readme
Lord Of The Rings Library
A mini library of LOTR characters, including their kind and weapon.
Purpose
Participation careerhack hackathon (2020-04-17)
Usage
Install it :
npm install lord-of-the-rings-library
Require it :
const _ = require('lord-of-the-rings-library');
Documentation
The following functions are currently implemented:
characterCaracteristics
: Returns object of kind:value, weapon:value of chosen charactercharactersListInOrder
: Returns list of 10 characters in alphabetical order : [ "Aragorn", "Boromir", "Frodo", "Gandalf", "Gimli", "Gollum", "Legolas", "Merry", "Pippin", "Sam" ];createYourOwnCharacter
: Returns a new object of name:value, kind:value, weapon:value of chosen valuescreateYourOwnCharacter
: Returns a new object of name:value, kind:value, weapon:value of chosen valuesweaponOfCharacter
: Returns the weapon used by chosen characterkindOfCharacter
: Returns the kind from chosen characterifCharacterNotFound
: Returns true if character input is not found in the list of 10 characters