Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

thuan-client

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thuan-client - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

4

package.json

@@ -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',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc