Created
October 23, 2023 20:02
-
-
Save ViliamKopecky/850b3353f601814eb7aea6b83b748944 to your computer and use it in GitHub Desktop.
1Password read password from Bun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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