From 4619326a0f7ca9b7adc8c079301c829d9f075072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 1 Mar 2023 10:36:25 +0100 Subject: [PATCH] docs: update snapshots page --- docs/content/3.utils.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/3.utils.md b/docs/content/3.utils.md index 3ac04aa7..353249f9 100644 --- a/docs/content/3.utils.md +++ b/docs/content/3.utils.md @@ -20,9 +20,9 @@ await assetsStorage.setItem("x", "hello!"); ## Snapshots -## `snapshot(storage, base?)` +- `snapshot(storage, base?)` -Snapshot from all keys in specified base into a plain javascript object (string: string). Base is removed from keys. +Take a snapshot from all keys in specified base into a plain javascript object (string: string). Base is removed from keys. ```js import { snapshot } from "unstorage"; @@ -30,9 +30,9 @@ import { snapshot } from "unstorage"; const data = await snapshot(storage, "/etc"); ``` -## `restoreSnapshot(storage, data, base?)` +- `restoreSnapshot(storage, data, base?)` -Restore snapshot created by `snapshot()`. +Restore a snapshot created by `snapshot()`. ```js await restoreSnapshot(storage, { "foo:bar": "baz" }, "/etc2");