flat

Take a nested Javascript object and flatten it, or unflatten an object with delimited keys

6.0.1Latest, 19 Sep 2023
156MDownloads, last month
0Advisories on the latest
1Advisories, all versions
BSD-3-ClauseLicence
1.8KStars
3.0/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
Critical flat vulnerable to Prototype Pollution CVE-2020-36632 Fixed in 3.0.1, 4.0.2, 5.0.1 25 Dec 2022

In the news

On Hacker News

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.