1
0
Fork 0

feat: add script to generate cuids

- using cuid2
This commit is contained in:
Vojtěch Mareš 2023-06-25 10:45:10 +02:00
parent 3884ca17a6
commit f28e3dac4f
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
3 changed files with 20 additions and 0 deletions

5
scripts/cuid.mjs Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env node
import { createId } from '@paralleldrive/cuid2';
console.log(createId());