{"library":"safe-flat","type":"library","category":null,"description":"safe-flat is a JavaScript/TypeScript utility library designed for safely flattening and unflattening deeply nested objects. Its primary function, `flatten`, converts a multi-level object into a single-level object, using a configurable delimiter (defaulting to '.'). A key feature is its robust handling of circular references, which it replaces with the `[Circular]` string during flattening to prevent infinite recursion and serialization issues. The companion function, `unflatten`, reconstructs the original nested object structure from a flattened representation, treating `[Circular]` markers as literal string values. The current stable version, 2.1.0, is distributed with TypeScript types, enhancing developer experience. It appears to have a stable, though infrequent, release cadence, focusing on reliability for object serialization and deserialization tasks by mitigating common pitfalls like circular references.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","flat","flatten","json","nested","object","safe","serialize","unflatten","typescript"],"install":[{"cmd":"npm install safe-flat","imports":["import { flatten } from 'safe-flat';","import { unflatten } from 'safe-flat';","import type { FlattenedObject, UnflattenedObject } from 'safe-flat';"]},{"cmd":"yarn add safe-flat","imports":[]},{"cmd":"pnpm add safe-flat","imports":[]}],"homepage":null,"github":"https://github.com/jessie-codes/safe-flat","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/safe-flat","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/safe-flat/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}