isharry
Version:
A simple NPM package to check if a string is 'Harry' and get its length.
51 lines (36 loc) • 887 B
Markdown
A simple NPM package that checks if a string is "Harry" and provides additional string utilities.
```sh
npm install isharry
```
```js
const { isHarry, isHarryCount } = require("isharry");
console.log(isHarry("Harry")); // true
console.log(isHarry("John")); // false
console.log(isHarryCount("Hello")); // 5
```
```js
import { isHarry, isHarryCount } from "isharry";
console.log(isHarry("Harry")); // true
console.log(isHarryCount("World")); // 5
```
Checks if the given string is exactly "Harry".
```js
isHarry("Harry"); // true
isHarry("harry"); // false
```
Returns the length of the given string.
```js
isHarryCount("Hello"); // 5
```
MIT License
---
Enjoy using **isHarry**!