thuan-client
v2.0.2
Published
Code use client for my project
Downloads
10
Maintainers
Readme
The library for Nguyen Thuan project
Using module
Install:
npm i thuan-client --save
var thuan_client = require('thuan-client');
- 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);
- 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);
});
- Using validate
- phone
- url
- image
- video
- music