Socket
Book a DemoInstallSign in
Socket

@worktile/util-misc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@worktile/util-misc

util for browser.

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

util-misc

util misc for browser.js.

Installation

npm install @worktile/util-misc --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

FAQs

Package last updated on 07 Dec 2017

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