Skip to content
/ thokk Public

Docker-like name generator comprising of adjectives and surname with types for TypeScript

License

Notifications You must be signed in to change notification settings

aekasitt/thokk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thokk

Thokk Banner

Getting started

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)
}

Acknowledgements

  1. Þökk - Wikimedia Commons, Public Domain Marked.
  2. SOV กลับบ้าน typeface by Worawut Thanawatanawich
  3. @iprg/docker-name-generator by @rajabzadehm43

License

This project is licensed under the terms of the MIT license.

About

Docker-like name generator comprising of adjectives and surname with types for TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published