-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kerim Hudson
committed
Apr 11, 2024
1 parent
7ffb48b
commit 315e4bd
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,24 @@ NameTag is a simple username generator with a dictionary of safe words to use to | |
## How to use | ||
|
||
```ts | ||
import { nametag } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
const friendlyName = nametag(); | ||
``` | ||
|
||
Or with a configuration: | ||
|
||
```ts | ||
import { | ||
nametag, | ||
type NametagConfig, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
const config: NametagConfig = { | ||
words: 5, | ||
delimiter: "_", | ||
categories: ["adjectives", "food"], | ||
}; | ||
|
||
const friendlyName = nametag(config); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters