Templater - How to add information to YAML frontmatter

The following will work with my script

<% tp.user.mutate_frontmatter(tp, {new_information: "Some information in here"}) %>
---
page-title: "2022-06-05"
aliases:
  - "2022-06-05"
date: "2022/06/05 13:12:00"
tags:
  - "2022/06/05"
new_information: "Some information in here"
---