@worktile/util-kits

0.0.8 • Public • Published

util-kits

util kits for browser.js.

Installation

npm install @worktile/util-kits --save

Usage

// browser
var currentLanguage = utilMisc.browser.getLanguage();
console.log(currentLanguage);

// cookie
utilMisc.cookie('sid'); // get cookie 'sid'
utilMisc.cookie('sid', 'xxxxxxx'); // set cookie 'sid=xxxxxxx'

// URI
// get current url query param 
// http://127.0.0.1:8080?name=hello => 'hello'
utilMisc.URI.query('name'); 

(new utilMisc.URI('http://127.0.0.1:8080?name=hello')).query.name; // hello

Readme

Keywords

none

Package Sidebar

Install

npm i @worktile/util-kits

Weekly Downloads

4

Version

0.0.8

License

ISC

Unpacked Size

33.8 kB

Total Files

16

Last publish

Collaborators

  • why520crazy
  • shaunxu
  • pubuzhixing
  • walkerkay001
  • swordman
  • handsomebutterball
  • xiaobei_lu