Quick Start

Installation

First, install the package using npm:

Terminal

npm install @6nehemie/textguard

Or if you prefer yarn:

Terminal

yarn add @6nehemie/textguard

Example Usage

Here's a simple example that demonstrates email validation:

index.ts

import { isValidEmail } from '@6nehemie/textguard';

const email = 'example@exmaple.com';
  
// checks if the user email is valid
const validEmail = isValidEmail(email); //returns true
  
if (validEmail === true) {
  /** Your code */
}

And that's it! You've successfully installed @nehemie/textguard and validated an email address.