Function serealizeObjectSync

  • Serializes an object to JSON and writes it to a file synchronously.

    Parameters

    • filePath: string

      The path of the file to write.

    • object: any

      The object to serialize and write to the file.

    Returns void