This package has been deprecated

Author message:

This package seemed interesting to work on but was never updated and should therefore not be used

form-bs-check

1.0.1 • Public • Published

Installation

In the terminal

npm install form-bs-check

In your text editor

var checker = require('form-bs-check');

API

checker.firstname(firstname, [callback])

checker.firstname(firstname, (result) => {
	if(result){
	// firstname is valid
	}else{
	// firstname is not valid
	}
});

checker.lastname(lastname, [callback])

checker.lastname(lastname, (result) => {
	if(result){
	// lastname is valid
	}else{
	// firstname is not valid
	}
});

checker.password(password, [callback])

checker.password(password, (complexity) => {
	// complexity = level of complexity of your password (0-4)
});

checker.form(form, [callback])

checker.form(form, (result) => {
	// result = the result of your form checking
});

This is not perfect but it is getting better by the day

Package Sidebar

Install

npm i form-bs-check

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

987 kB

Total Files

7

Last publish

Collaborators

  • tanohzana