diff --git a/README.md b/README.md index 9efa34a..36fabd5 100644 --- a/README.md +++ b/README.md @@ -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)) { diff --git a/example.js b/example.js index 458051a..8c45d87 100644 --- a/example.js +++ b/example.js @@ -1,4 +1,4 @@ -const emailValidator = require('./src'); +const emailValidator = require('./src/index.js'); const email = 'contact@sefinek.net'; if (emailValidator.test(email)) { diff --git a/package.json b/package.json index b2da778..205bd13 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "email-validator", + "name": "@sefinek/email-validator", "version": "0.1.0", "description": "Lightweight npm module for email address validation.", "keywords": [ diff --git a/src/index.d.ts b/src/index.d.ts index 9dc52e5..67283de 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -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)) {