UNPKG

nested-object-to-key-value

Version:

A lightweight utility to flatten nested JavaScript objects into dot-notation key-value pairs and unflatten them back. Perfect for handling complex configurations, form data, or API transformations.

5 lines 210 B
export interface UnflattenedJson { [key: string]: string | UnflattenedJson; } export declare function unflattenJson(obj: Record<string, string>): UnflattenedJson; //# sourceMappingURL=unflattenJson.d.ts.map