npm.io
5.0.0 • Published 2 years ago

onedionys-form-handling-utilities

Licence
ISC
Version
5.0.0
Deps
132
Size
13 kB
Vulns
0
Weekly
0
Stars
9

Welcome to One Dionys - Form Handling Utilities!

Functions to validate, submit, and manage forms in web applications.

Requirements

  • Web Browser - Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].
  • Internet - Because many use CDN and to make it easier to find solutions to all problems.

How To Use

Example Syntax
const { validateEmail, validateURL } = require('./src/formHandlingUtils');

// Validate email
console.log(validateEmail('example@example.com')); // Output: true
console.log(validateEmail('example.com')); // Output: false

// Validate URL
console.log(validateURL('https://www.example.com')); // Output: true
console.log(validateURL('example.com')); // Output: false
Explanation
  • validateEmail(email): This function validates whether the provided email address is in a valid format.
  • validateURL(url): This function validates whether the provided URL is in a valid format.
Return Value

For the validateEmail() function:

  • Returns true if the email is valid.
  • Returns false if the email is invalid.

For the validateURL() function:

  • Returns true if the URL is valid.
  • Returns false if the URL is invalid.

Release Date

  • v1.0.0 : 07 March 2024
  • v1.0.1 : 11 March 2024
  • v4.0.0 : 11 March 2024
  • v4.0.1 : 13 March 2024
  • v4.0.2 : 18 March 2024
  • v5.0.0 : 31 March 2024

Author

License

  • Copyright 2024 One Dionys
  • One Dionys - Form Handling Utilities is an open source project licensed under the MIT license

Suppport & Donation

Love One Dionys - Form Handling Utilities? Support this project by donating or sharing with others in need.

Made with One Dionys

Keywords