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

Code use client for my project

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 07 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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