thuan-client
Advanced tools
Comparing version 1.0.2 to 2.0.0
@@ -5,3 +5,3 @@ { | ||
"description": "Code use client for my project", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"main": "./dist/index.js", | ||
@@ -21,3 +21,3 @@ "scripts": { | ||
"license": "BSD-2-Clause", | ||
"readme": "The library for Nguyen Thuan project\n==================================================\n\nUsing module\n--------------\n\nInstall:\n\n```js\nnpm i thuan-client --save\n\nvar thuan_client = require('thuan-client');\n```\n\n1. Using cookie:\n----------------\n\n```js\nvar cookie = thuan_client('cookie');\n```\n- start to get all values:\n\n```js\ncookie.init();\nconsole.log(cookie);\n```\n\n- Set cookie:\n\n```js\ncookie.init({\n domain: '.yourweb.com',\n path: '/',\n maxAge: 9000000\n}).set(object);\n```\n\n2. Using confirm box\n\n```js\nvar confirm_box = thuan_client('confirm');\nvar option = {\n header: 'Header title of confirm',\n content: 'Text or HTML content',\n btn: {\n name: {\n class: 'class-name',\n text: 'Value'\n }\n },\n remove: true\n};\nconfirm_box(option, function(name){\n console.log(name);\n});\n```\n\n3. Using validate\n------------------\n\n- email\n- phone\n- url\n- image\n- video\n- music", | ||
"readme": "The library for Nguyen Thuan project\n==================================================\n\nUsing module\n--------------\n\nInstall:\n\n```js\nnpm i thuan-client --save\n\nvar thuan_client = require('thuan-client');\n```\n\n1. Using cookie:\n----------------\n\n```js\nvar cookie = thuan_client.cookie;\n```\n- start to get all values:\n\n```js\ncookie.init();\nconsole.log(cookie);\n```\n\n- Set cookie:\n\n```js\ncookie.init({\n domain: '.yourweb.com',\n path: '/',\n maxAge: 9000000\n}).set(object);\n```\n\n2. Using confirm box\n\n```js\nvar confirm_box = thuan_client.confirm;\nvar option = {\n header: 'Header title of confirm',\n content: 'Text or HTML content',\n btn: {\n name: {\n class: 'class-name',\n text: 'Value'\n }\n },\n remove: true\n};\nconfirm_box(option, function(name){\n console.log(name);\n});\n```\n\n3. Using validate\n------------------\n\n- email\n- phone\n- url\n- image\n- video\n- music", | ||
"readmeFilename": "README.md", | ||
@@ -24,0 +24,0 @@ "_id": "thuan-client@1.0.0", |
@@ -19,3 +19,3 @@ The library for Nguyen Thuan project | ||
```js | ||
var cookie = thuan_client('cookie'); | ||
var cookie = thuan_client.cookie; | ||
``` | ||
@@ -42,3 +42,3 @@ - start to get all values: | ||
```js | ||
var confirm_box = thuan_client('confirm'); | ||
var confirm_box = thuan_client.confirm; | ||
var option = { | ||
@@ -45,0 +45,0 @@ header: 'Header title of confirm', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9398