# jquery-param

> Equivalent function to jQuery.param

Latest version **1.2.9** (published 2026-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install jquery-param
pnpm add jquery-param
yarn add jquery-param
bun add jquery-param
```

## Health

**Score 63/100 (C)** — status: active.

Positive: has types package; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.2.9 |
| Published | 2026-06-06 |
| First published | 2015-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/jquery-param) |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 66 |
| Author | KNOWLEDGECODE |
| Maintainers | knowledgecode |
| Keywords | jquery, param, equivalent, jquery.param, serialize, post, query-string, url-encoding, form-data, browser, nodejs |

## Links

- npm: https://www.npmjs.com/package/jquery-param
- Repository: https://github.com/knowledgecode/jquery-param
- Homepage: https://github.com/knowledgecode/jquery-param#readme
- Issues: https://github.com/knowledgecode/jquery-param/issues
- npm.io page: https://npm.io/package/jquery-param

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.2.9 (latest) — 2026-06-06
- 1.2.8 — 2026-04-19
- 1.2.7 — 2026-04-04
- 1.2.6 — 2026-03-07
- 1.2.5 — 2025-08-20
- 1.2.4 — 2024-08-25
- 1.2.3 — 2023-08-20
- 1.2.2 — 2023-08-20
- 1.2.1 — 2023-01-13
- 1.2.0 — 2023-01-03
- 1.1.9 — 2022-04-17
- 1.1.8 — 2021-06-03
- 1.1.7 — 2021-05-31
- 1.1.6 — 2021-05-13
- 1.1.5 — 2021-04-13
- … 14 more at https://npm.io/package/jquery-param/versions

## README

# jquery-param

[![CI](https://github.com/knowledgecode/jquery-param/actions/workflows/ci.yml/badge.svg)](https://github.com/knowledgecode/jquery-param/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/jquery-param)](https://www.npmjs.com/package/jquery-param)

## Features

- Equivalent to jQuery.param (based on jQuery 3.x)
- No dependencies
- Universal (Isomorphic)
- ES Modules Support

## Installation

via npm:

```shell
npm i jquery-param
```

## Usage

```javascript
import param from 'jquery-param';

const obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
const str = param(obj);
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"
```

CommonJS:

```javascript
const param = require('jquery-param');

const obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
const str = param(obj);
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"
```

ES Modules (Browser):

```html
<script type="module">
import param from '/path/to/jquery-param.js';

const obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
const str = param(obj);
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"
</script>
```

Traditional (Browser):

```html
<script src="/path/to/jquery-param.js">
<script>
var obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
var str = window.param(obj);
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"
</script>
```

## Browser Support

Chrome, Firefox, Safari, Edge, and IE9+.

## License

MIT

---
_Source: https://npm.io/package/jquery-param · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
