six-seven
v1.0.1
Published
Check if a number is 6 or 7 (CLI & Library)
Downloads
4
Maintainers
Readme
six-seven
Check if a number is 6 or 7 - inspired by the viral meme 🎯
A fun CLI tool and TypeScript library that checks if a number is 6 or 7, complete with the iconic "siiix seeeeven" response.
Installation
Global (CLI usage)
npm install -g six-sevenLocal (as a library)
npm install six-sevenUsage
CLI
six-seven 6
# Output:
# Is 6 equal to 6? true - siiix seeeeven
six-seven 7
# Output:
# Is 7 equal to 7? true - siiix seeeeven
six-seven 5
# Output:
# Is 5 equal to 6? false
# Is 5 equal to 7? false
# Is 5 equal to 6 or 7? falseAs a Library
import { isSixOrSeven, isSix, isSeven } from "six-seven";
console.log(isSixOrSeven(6)); // true
console.log(isSixOrSeven(7)); // true
console.log(isSixOrSeven(5)); // false
console.log(isSix(6)); // true
console.log(isSeven(7)); // trueAPI
isSixOrSeven(num: number): boolean
Returns true if the number is 6 or 7, otherwise false.
isSix(num: number): boolean
Returns true if the number is exactly 6, otherwise false.
isSeven(num: number): boolean
Returns true if the number is exactly 7, otherwise false.
About
Inspired by the viral "Is it 6 or 7?" meme. Built with TypeScript for maximum type safety when checking if your numbers are 6 or 7.
License
MIT © Dan Lewis Muriuki
Links
Made with ❤️ and memes
