History
The History protocol:
protocol History {
func save(_ string: String, _ name: String) -> Bool
}$history.save
let content = `
{"Hello": "World!"}
`;
$history.save(content);Directly save content to history.
You can also set the name for the item in History.
let content = `
{"Hello": "World!"}
`;
$history.save(content, 'hello-world.json');