A lightweight NPM package that checks if a string is 'Wambo' or if it isn't. Inspired by the legendary scene from SpongeBob SquarePants, this tool is perfect for all fans of Patrick, Mermaid Man, and the science of Wambology! 🐚🦸♂️
Install the package via NPM:
npm i is-wambo
Import the package and use the functions:
const { isWambo, isNotWambo, isWamboCaseSensitive, isNotWamboCaseSensitive, isWamboWithCapitalW, isNotWamboWithCapitalW } = require('is-wambo');
console.log(isWambo('Wambo')); // true
console.log(isWambo('wumbo')); // false
console.log(isNotWambo('Wambo')); // false
console.log(isNotWambo('wumbo')); // true
console.log(isWamboCaseSensitive('wambo')); // true
console.log(isWamboCaseSensitive('Wambo')); // false
console.log(isNotWamboCaseSensitive('wambo')); // false
console.log(isNotWamboCaseSensitive('Wambo')); // true
console.log(isWamboWithCapitalW('Wambo')); // true
console.log(isWamboWithCapitalW('wambo')); // false
console.log(isNotWamboWithCapitalW('Wambo')); // false
console.log(isNotWamboWithCapitalW('wambo')); // true
For the uninitiated: Wambo is an iconic term from the SpongeBob episode "Shrinkage Day". Patrick explains to SpongeBob the versatile application of Wambo:
"I wambo, you wambo, he/she/it wambos; wambo, to wambo, wamboing, have wamboed... Wamborama, Wambology, the study of Wambo. It's first-grade, SpongeBob!"
- Simple: Just one function! Check if your input is
Wambo
. - Lightweight: Minimal code, maximum fun.
- Nostalgic: For everyone who grew up with SpongeBob and Patrick.
- input: The string to be checked.
- Return value: Returns
true
if the string isWambo
(case-insensitive), otherwisefalse
.
- input: The string to be checked.
- Return value: Returns
false
if the string isWambo
(case-insensitive), otherwisetrue
.
- input: The string to be checked.
- Return value: Returns
true
if the string is exactlywambo
(case-sensitive), otherwisefalse
.
- input: The string to be checked.
- Return value: Returns
false
if the string is exactlywambo
(case-sensitive), otherwisetrue
.
- input: The string to be checked.
- Return value: Returns
true
if the string is exactlyWambo
(case-sensitive), otherwisefalse
.
- input: The string to be checked.
- Return value: Returns
false
if the string is exactlyWambo
(case-sensitive), otherwisetrue
.
This package is released under the Apache License Version 2.0.
Wambology: It's not just science, it's a way of life. 🌈🚀