Skip to content

es-tooling/nested-querystring

This branch is 12 commits ahead of, 6 commits behind goto-bus-stop/qs-stringify:default.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

72c6b44 · Jun 27, 2024

History

45 Commits
Jan 27, 2024
Jan 28, 2024
Jan 27, 2024
Jan 27, 2024
Jan 28, 2024
Jan 27, 2024
May 14, 2020
Jan 28, 2024
Jun 27, 2024
Feb 27, 2024
Feb 27, 2024
Jan 28, 2024

Repository files navigation

nested-querystring

A small utility to create nested query strings with deep[property]=value syntax.

Originally a fork of qs-stringify.

No longer maintained

This package is no longer maintained and has since been replaced by the much faster, and much more feature complete picoquery.

Install

npm install nested-querystring

Usage

import {stringify, create} from 'nested-querystring';

stringify({
  page: {
    offset: 50,
    limit: 25
  },
  filter: 'hello world'
})
// → "page[offset]=50&page[limit]=25&filter=hello%20world"

create({
  page: {
    offset: 50,
    limit: 25
  },
  filter: 'hello world'
});
// URLSearchParams { .... }

License

MIT

Packages

No packages published

Languages

  • TypeScript 100.0%