Skip to content

Commit 8622928

Browse files
committed
feat: add scripts/sign.ts
1 parent 6dab963 commit 8622928

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/sign.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)