We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dab963 commit 8622928Copy full SHA for 8622928
scripts/sign.ts
@@ -0,0 +1,10 @@
1
+import { sign } from "../src/crypto.ts";
2
+
3
+if (import.meta.main) {
4
+ const arg = Deno.args[0] ?? "";
5
+ if (arg.split("/").length !== 2) {
6
+ throw new Error(`usage: deno run --allow-env --env-file scripts/sign.ts <id>/<sig>`);
7
+ }
8
9
+ console.log(await sign(arg));
10
+}
0 commit comments