# @validate/is-string

![npm](https://img.shields.io/npm/v/@validate/is-string) ![npm](https://img.shields.io/npm/dt/@validate/is-string) ![license](https://img.shields.io/npm/l/@validate/is-string)

A lightweight utility to check if a given value is a string.

## Installation

Install the package using npm:

```sh
npm install @validate/is-string
```

Or using yarn:

```sh
yarn add @validate/is-string
```

## Usage

### Importing the module

#### CommonJS
```js
const isString = require("@validate/is-string");
```

#### ES Module
```js
import isString from "@validate/is-string";
```

### Examples

```js
console.log(isString("Hello, World!")); // true
console.log(isString(123)); // false
console.log(isString(null)); // false
console.log(isString({})); // false
console.log(isString(["a", "b"])); // false
console.log(isString(new String("Hello"))); // true
```

## Why use @validate/is-string?

- 🔹 **Lightweight** – Minimal package with zero dependencies.
- 🚀 **Fast & Efficient** – Uses `typeof` for quick type checking.
- 📦 **Easy to Use** – Simple API with a single function.

## License

This project is licensed under the [MIT License](LICENSE).

