Skip to content
JS
Package

flat

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

v6.0.1, 19 Sept 2023BSD-3-ClauseESM onlyTypes: Bundled
$ npm install flat

Key numbers

As of 25 Sept 2026
Weekly downloads
21.7m
+24% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 years ago
v6.0.1
GitHub stars
1.8k
197 forks
Open issues / PRs
35 / 25
Contributors
-
Commits, last 52 weeks
2

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30m40mSept 2025Mar 2026Sept 2026High 32m (25 Aug 2026)Low 11.4m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

21,653,743 downloads last week, 110,415,151 in the last month. The 12-month change of +24% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
028 in total
Latest version
6.0.1, 19 Sept 20233 years ago
First published
5 Oct 2012
Last push to GitHub
19 Mar 2026189 days before the snapshot
Repository archived
No
Open issues
35
Open pull requests
25
Commits, last 52 weeks
2
Dependents on npm
3,030

Major versions

  1. v6 first release 6.0.0, 15 Sept 2023
  2. v5 first release 5.0.0, 22 Oct 2019
  3. v4 first release 4.0.0, 25 Jul 2017
  4. v3 first release 3.0.0, 23 Jul 2017
  5. v2 first release 2.0.0, 30 Jan 2016
  6. v1 first release 1.0.0, 30 Apr 2013
  7. v0 first release 0.0.1, 5 Oct 2012

Recent releases

VersionPublished
6.0.119 Sept 2023
6.0.015 Sept 2023
3.0.114 Oct 2020
2.0.214 Oct 2020
1.6.214 Oct 2020
4.1.114 Oct 2020
5.0.26 Aug 2020
5.0.16 Aug 2020
5.0.022 Oct 2019
4.1.02 Jul 2018
4.0.025 Jul 2017
3.0.023 Jul 2017
2.0.123 Jun 2016
2.0.030 Jan 2016
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18
Runtimes
-
Unpacked size (npm)
12 kB
Dependencies (0)
None
npm install flat
  • jsDelivrhttps://cdn.jsdelivr.net/npm/flat@6.0.1/
  • unpkghttps://unpkg.com/flat@6.0.1/
  • esm.shhttps://esm.sh/flat@6.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.