Deserialize an FtMeta object from a string.
The serialized meta content (XML or JSON)
Optionalwarnings: string[]
Optional array to collect warnings during deserialization
Optionalformat: FtMetaSerializationFormat
The format of the content (default: auto-detect)
The deserialized FtMeta object
Deserialize an FtMeta object from a file path (Node.js only).
The format is detected from the file extension when format is not provided.
The path or file descriptor of the meta file.
Optionalwarnings: string[]
An optional array to receive deserialization warnings.
The encoding of the file. Defaults to utf-8.
Optionalformat: FtMetaSerializationFormat
The format of the file. Defaults to the format detected from the file extension.
The deserialized FtMeta object
Serialize an FtMeta object to a string.
The FtMeta object to serialize
Optionaloptions: FtMetaSerializerOptionsOptionalformat: FtMetaSerializationFormat
The output format (default: XML)
The serialized string
Serialize an FtMeta object to a file (Node.js only).
The format is detected from the file extension when format is not provided.
The FtMeta object to serialize.
The output path or file descriptor.
Optionaloptions: FtMetaSerializerOptions
Optional serialization options.
The encoding of the file. Defaults to utf-8.
Optionalformat: FtMetaSerializationFormat
The output format. Defaults to the format detected from the file extension.
API for serializing and deserializing FtMeta objects into/from files. Provides a unified interface for both XML and JSON formats.