typescript on both client and server with communication via socket.io

This commit is contained in:
Gavin McDonald
2025-04-09 11:28:35 -04:00
parent 9f2773f45d
commit 3c4b8cf56e
73 changed files with 1233 additions and 41 deletions

8
tools/simpleID.ts Normal file
View File

@@ -0,0 +1,8 @@
import { customAlphabet } from 'nanoid';
const alphabet =
'0123456789abcdefghijklmnopqrstuvwxyz';
const generateID = (length: number = 6) => customAlphabet(alphabet, length);
export default generateID;