isharry
v0.0.3
Published
A simple NPM package to check if a string is 'Harry' and get its length.
Downloads
3
Maintainers
Readme
isHarry
A simple NPM package that checks if a string is "Harry" and provides additional string utilities.
Installation
npm install isharryUsage
CommonJS (CJS)
const { isHarry, isHarryCount } = require("isharry");
console.log(isHarry("Harry")); // true
console.log(isHarry("John")); // false
console.log(isHarryCount("Hello")); // 5ES Modules (ESM)
import { isHarry, isHarryCount } from "isharry";
console.log(isHarry("Harry")); // true
console.log(isHarryCount("World")); // 5Functions
isHarry(name)
Checks if the given string is exactly "Harry".
isHarry("Harry"); // true
isHarry("harry"); // falseisHarryCount(name)
Returns the length of the given string.
isHarryCount("Hello"); // 5License
MIT License
Enjoy using isHarry!
