thuan-client

2.0.2 • Public • Published

The library for Nguyen Thuan project

Using module

Install:

npm i thuan-client --save

var thuan_client = require('thuan-client');
  1. Using cookie:

var cookie = thuan_client.cookie;
  • start to get all values:
cookie.init();
console.log(cookie);
  • Set cookie:
cookie.init({
	domain: '.yourweb.com',
	path: '/',
	maxAge: 9000000
}).set(object);
  1. Using confirm box
var confirm_box = thuan_client.confirm;
var option = {
	header: 'Header title of confirm',
	content: 'Text or HTML content',
	btn: {
		name: {
			class: 'class-name',
			text: 'Value'
		}
	},
	remove: true
};
confirm_box(option, function(name){
	console.log(name);
});
  1. Using validate

  • email
  • phone
  • url
  • image
  • video
  • music

Package Sidebar

Install

npm i thuan-client

Weekly Downloads

0

Version

2.0.2

License

BSD-2-Clause

Last publish

Collaborators

  • nguyenthuan