Skip to content

Commit

Permalink
@sefinek/email-validator
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek committed Dec 25, 2023
1 parent 24c6ba0 commit 047f23f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ yarn add email-validator

### Example
```js
const emailValidator = require('email-validator');
const emailValidator = require('@sefinek/email-validator');
const testEmail = 'contact@sefinek.net';

if (emailValidator.test(testEmail)) {
Expand Down
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const emailValidator = require('./src');
const emailValidator = require('./src/index.js');
const email = 'contact@sefinek.net';

if (emailValidator.test(email)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "email-validator",
"name": "@sefinek/email-validator",
"version": "0.1.0",
"description": "Lightweight npm module for email address validation.",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
declare module 'email-validator' {
declare module '@sefinek/email-validator' {
/**
* Function used for validating an email address.
*
* @param {string} email - The email address to validate.
* @example
* const emailValidator = require('email-validator');
* const emailValidator = require('@sefinek/email-validator');
* const email = 'example@example.com';
*
* if (emailValidator.test(email)) {
Expand Down

0 comments on commit 047f23f

Please sign in to comment.