feat: add easy-slides CLI

This commit is contained in:
2026-08-29 18:59:33 +08:00
parent 2ca064d303
commit 33152a90dc
19 changed files with 1692 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import { createHash } from 'node:crypto'
export function hashPresenterToken(token: string) {
return createHash('sha256').update(token.trim()).digest('hex')
}
export function hasPresenterToken(env: NodeJS.ProcessEnv = process.env) {
return Boolean(env.PRESENTER_TOKEN?.trim())
}