login-signup-form-validations

2.0.0 • Public • Published

LOGIN-SIGNUP-FORM-VALIDATIONS

A NPM package for validating the login signup form validations and much more.

Getting Started

To install the package just type

npm install login-signup-form-validations --save

How To Import

for angular 2 just import the pacakge as below.

import * as _ from login-signup-form-validations;

for node.js or js applications import it as below.

var validate = require('login-signup-from-validations');

How To Use

after importing the package into the application just use the object name to call the functions.

available functions in the packages are as follows.

checkEmail(args)

checkPassword(args)

checkCharacter(args)

these function will return either true/false so that no need to write the form validations in the applications just import and use the functions.

getCountries()

above function will return a JSON ARRAY contains all the countries of the world.

getStates(args)

above function will take arguments as countryCode for-example: IN for INDIA so you need to pass getStates(IN) as args.

Note: countryCodes are not case sensitive.

getStatesWithCities(args)

above function will take arguments as countryCode for-example: IN for INDIA so you need to pass getStatesWithCities(IN) as args.

Note: countryCodes are not case sensitive.

getRandomNumbers()

above function will return a 7 digits random number. (Use this random number to display the captcha)

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

Karthik S - karthikmunsu@gmail.com

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Package Sidebar

Install

npm i login-signup-form-validations

Weekly Downloads

1

Version

2.0.0

License

ISC

Last publish

Collaborators

  • karthikmunsu