Flatten/unflatten nested Javascript objects
BSD-3-CLAUSE License
Bot releases are hidden (Show)
export
field in package.json
(see #172).Published by jonkoops about 1 year ago
We are now shipping flat
as a pure ECMAScript module, if you are still using CommonJS in your application follow this migration guide.
The default export has been dropped in favor of a named one, if you are using the default export make sure to update your imports:
-import flatten from 'flat'
+import { flatten } from 'flat'
If you are a user of TypeScript you can remove @types/flat
from your project. The type definitions are now included in the package itself, so it is no longer required to keep a separate dependency around.
npm uninstall @types/flat