Socket
Socket
Sign inDemoInstall

jquery-param

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-param

a function that is equivalent of jQuery.param


Version published
Weekly downloads
31K
decreased by-7.01%
Maintainers
1
Weekly downloads
 
Created
Source

jquery-param Circle CI

Features

  • equivalent to output of jQuery.param
  • not need jQuery
  • no dependency
  • legacy IE support

Install

Node.js:

$ npm install jquery-param --save

browser:

<script src="./src/jquery-param.min.js"></script>

Usage

Node.js:

var param = require('jquery-param');
var obj = { key1: 'value1', key2: [10, 20, 30] };

var str = param(obj);
// "key1=value1&key2%5B%5D=10&key2%5B%5D=20&key2%5B%5D=30"

browser:

var obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };

var str = window.param(obj);
// "key1%5Bvalue1%5D%5B%5D=10&key1%5Bvalue1%5D%5B%5D=20&key1%5Bvalue1%5D%5B%5D=30&key2=%3Fa%3Db%26c%3Dd"

Browser Support

Chrome, Firefox, Safari, Opera, and Internet Explorer 6+.

License

MIT

Keywords

FAQs

Package last updated on 26 Mar 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