# serialize-for-xhr

> Serialize JavaScript Objects into XHR2 POST param equivalent

Latest version **0.1.5** (published 2015-09-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install serialize-for-xhr
pnpm add serialize-for-xhr
yarn add serialize-for-xhr
bun add serialize-for-xhr
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2015-09-09 |
| First published | 2015-09-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | user187291 on StackExchange & Daniel Ram |
| Maintainers | danieldram |
| Keywords | serialize, javascript, object, xhr, post, parameter |

## Links

- npm: https://www.npmjs.com/package/serialize-for-xhr
- Repository: https://github.com/danieldram/serialize-for-xhr
- Homepage: https://github.com/danieldram/serialize-for-xhr#readme
- Issues: https://github.com/danieldram/serialize-for-xhr/issues
- npm.io page: https://npm.io/package/serialize-for-xhr

## Recent versions

- 0.1.5 (latest) — 2015-09-09
- 0.1.4 — 2015-09-09
- 0.1.3 — 2015-09-09
- 0.1.1 — 2015-09-09

## README

# What Does It Do?
A fast and simple way to encode a javascript object into a string that can be used for POST/GET params for xhr2 requests.

## How To Use
```sh
npm i serialize-for-xhr --save
```

```js
var serialize = require('serialize-for-xhr')

console.log(serialize({foo: "hi there", bar: { blah: 123, quux: [1, 2, 3] }}));
// foo=hi%20there&bar%5Bblah%5D=123&bar%5Bquux%5D%5B0%5D=1&bar%5Bquux%5D%5B1%5D=2&bar%5Bquux%5D%5B2%5D=3
```

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