avatar_element

Get the Avatar's element based on their number in the lineage.

Usage no npm install needed!

<script type="module">
  import avatarElement from 'https://cdn.skypack.dev/avatar_element';
</script>

README

avatar_element

Enter a number, and get the corresponding avatar element. Based on the Avatar: The Last Airbender and Avatar: The Legend of Korra tv series.

Installation

$ npm install avatar_element

Usage

const getAvatarElement = require("avatar_element")

// Aang was 182, and was an airbender
getAvatarElement(182) // returns "air"

// Korra was 183 and a water bender
getAvatarElement(183) // returns "water"