https://github.com/nozzlegear/readable-id
Generates a readable unique id in the form of AdjectiveAdjectiveAnimal. Credit goes to Gfycat for both the idea and the list of words.
https://github.com/nozzlegear/readable-id
Last synced: 7 months ago
JSON representation
Generates a readable unique id in the form of AdjectiveAdjectiveAnimal. Credit goes to Gfycat for both the idea and the list of words.
- Host: GitHub
- URL: https://github.com/nozzlegear/readable-id
- Owner: nozzlegear
- License: mit
- Created: 2017-08-07T15:12:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T15:24:46.000Z (about 8 years ago)
- Last Synced: 2025-02-16T15:28:55.321Z (8 months ago)
- Language: F#
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ReadableId
Generates a readable unique id in the form of AdjectiveAdjectiveAnimal. Credit goes to Gfycat for both the idea and the list of words.## Installation
Install with the `dotnet` CLI tool:
```bash
dotnet add package readableid
```## Usage
In C#:
```cs
public string GetUniqueId()
{
bool capitalize = true;
string uniqueId = ReadableId.Builder.Build(capitalize);Console.WriteLine(uniqueId);
// MeatySeverePachydermreturn uniqueId;
}
```In F#:
```fs
let getUniqueId capitalize = ReadableId.Builder.Build capitalizeprintfn "%s" (getUniqueId true)
// ThirdMaroonBrocketdeer
```