npm.io
1.6.3 • Published 2 years ago

smartty-lib

Licence
ISC
Version
1.6.3
Deps
2
Size
6 kB
Vulns
0
Weekly
0

SMartty Lib Documentation

The SMartty Lib is a demonstration practice application designed to showcase how to create an NPM package. It serves as a versatile library for practicing various checks, including identifying even numbers, odd numbers, consonants, and vowels.

Functions:

isEven(number):

  • Description: Checks if a given number is even.
  • Example:
    • isEven(1) returns false.
    • isEven(2) returns true.
isOdd(number):
  • Description: Checks if a given number is odd.
  • Example:
    • isOdd(1) returns true.
    • isOdd(2) returns false.
isVowel(letter):
  • Description: Checks if a given letter is a vowel.
  • Example:
    • isVowel("a") returns true.
    • isVowel("b") returns false.
isConsonant(letter):
  • Description: Checks if a given letter is a consonant.
  • Example:
    • isConsonant("a") returns false.
    • isConsonant("b") returns true.

Keywords