Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
jquery-param
Advanced tools
Node.js:
$ npm install jquery-param --save
Bower (DEPRECATED):
$ bower install jquery-param
the browser:
<script src="jquery-param.min.js"></script>
Node.js:
const param = require('jquery-param');
let obj = { key1: 'value1', key2: [10, 20, 30] };
let str = param(obj);
// => "key1=value1&key2[]=10&key2[]=20&key2[]=30"
AMD:
require(['jquery-param'], function (param) {
var obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
var str = param(obj);
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"
});
directly:
var obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
var str = window.param(obj); // global object
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"
Chrome, Firefox, Safari, Edge, and IE9+.
MIT
FAQs
equivalent function to jQuery.param
The npm package jquery-param receives a total of 26,689 weekly downloads. As such, jquery-param popularity was classified as popular.
We found that jquery-param demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.