2.0.2 • Published 10 years ago

thuan-client v2.0.2

Weekly downloads
1
License
BSD-2-Clause
Repository
-
Last release
10 years ago

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
2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago