Use it in your code as such:
import { randomBytes } from 'crypto'
import { thokk } from 'thokk'
type Person = {
id: string
name: string
age: number
}
let kid: Person = {
id: randomBytes(64).toString(),
name: thokk(),
age: Math.floor(Math.random() * (18 + 1))
}
let adult: Person = {
id: randomBytes(64).toString(),
name: thokk(),
age: Math.floor(Math.random() * (80 - 18 + 1) + 18)
}
- Þökk - Wikimedia Commons, Public Domain Marked.
- SOV กลับบ้าน typeface by Worawut Thanawatanawich
- by @rajabzadehm43
This project is licensed under the terms of the MIT license.