Install
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
Source · Homepage · Ask AI Mode · · Markdown
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
- Home Improvement Programme 2 to target HDB flats around 60 to 70 years old channelnewsasia.com, 3 Dec 2026
- Before vs. After: Fixing Flat 2D Boss Fights with 1 Line of Godot 4 Code (+ Free CC0 Pack & v2.3 Mega Suite) dev.to, 3 Dec 2026
- Parametric CNC Plasma Flat-Pack Rocket Stoves in TypeScript: Auto-Gauge Slots, Venturi Draft DRC & Strict R12 DXF dev.to, 2 Dec 2026
- Parametric CNC Plasma Flat-Pack Fire Pits in TypeScript: 3D Frustum Dihedral Slots, 4x8 Plate Nesting & .TAP CAM dev.to, 2 Dec 2026
- Stop Flattening Nested JSON Arrays Blindly: How flat() and flatMap() Actually Work in JavaScript medium.com, 1 Dec 2026
On Hacker News
- Flat UI: Free Web User Interface Kit 872 points, 191 comments, 4 Mar 2013
- No Kings: How Do You Make Good Decisions Efficiently in a Flat Organization? 745 points, 303 comments, 11 Jun 2019
- After rising for 100 years, electricity demand is flat 633 points, 496 comments, 27 Feb 2018
- Why car wheels are so flat these days 438 points, 235 comments, 14 Sep 2022
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.