Skip to content

Instantly share code, notes, and snippets.

@JunkMeal
Created February 4, 2024 23:47
Show Gist options
  • Save JunkMeal/298436fb017c2defa50608a105e058d7 to your computer and use it in GitHub Desktop.
Save JunkMeal/298436fb017c2defa50608a105e058d7 to your computer and use it in GitHub Desktop.
async function anki(action, params) {
return Object.values(await (await fetch("http://127.0.0.1:8765", {
method: "POST",
body: JSON.stringify({
action,
version: 6,
params
})
})).json())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment