Skip to content

Instantly share code, notes, and snippets.

@ViliamKopecky
Created October 23, 2023 20:02
Show Gist options
  • Save ViliamKopecky/850b3353f601814eb7aea6b83b748944 to your computer and use it in GitHub Desktop.
Save ViliamKopecky/850b3353f601814eb7aea6b83b748944 to your computer and use it in GitHub Desktop.
1Password read password from Bun
export async function opRead(path: `op://${string}/${string}/${string}`) {
return await new Response(Bun.spawn(["op", "read", path]).stdout).text();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment