Serialize a JavaScript object to a plist string.
With binary set to false (default), returns an XML plist string suitable for
storing in text files or passing to readString. With binary set to true,
returns a base64-encoded binary plist string.
Parameters
data: Record<string,any>
A JavaScript object to serialize as a property list
Optionalbinary: boolean
If true, produce base64-encoded binary plist output; if false (default), produce an XML string
Returns string|null
The serialized plist string, or null if serialization failed
Serialize a JavaScript object to a plist string. With binary set to false (default), returns an XML plist string suitable for storing in text files or passing to
readString. With binary set to true, returns a base64-encoded binary plist string.