Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Encode nested objects into query strings in a readable AND safe format.

Usage

Encoding

const query = {
  a: {
    b: { c: ["good", "best"] },
    b2: "hi"
  },
  page: "10"
};

encode(query);
>>> "a.b.c=good&a.b.c=best&a.b2=hi&page=10"

Decoding

const queryString = "a.b.c=good&a.b.c=best&a.b2=hi&page=10"

decode(queryString)
{
  a: {
    b: { c: ["good", "best"] },
    b2: "hi"
  },
  page: "10"
};

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages