@monabbous/unflatter
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Unflatter

This library is used to unflatten an object to nested object form.

for example:

const data = {
    "name[value]": "Ali Baba",
    "name[operator]": "LIKE",
    "phone": "001135"
}

console.log(unflatter(data));

output:

{
    "name" : {
        "value": "Ali Baba",
        "operator": "LIKE
    },
    "phone": "001135"
}

that's it just install with npm i @monabbous/unflatter and start unflatting :D

/@monabbous/unflatter/

    Package Sidebar

    Install

    npm i @monabbous/unflatter

    Weekly Downloads

    0

    Version

    0.0.4

    License

    none

    Unpacked Size

    73.2 kB

    Total Files

    20

    Last publish

    Collaborators

    • monabbous