Shortid TypeScript

// on nodejs you can use the internal crypto module to generate random
// short ids with
import { randomBytes } from 'crypto';

const shortId = randomBytes(4).toString("hex")
Victor Grk