https://github.com/lpil/youid
  
  
  
    
        Last synced: about 1 month ago 
        JSON representation
    
- Host: GitHub
 - URL: https://github.com/lpil/youid
 - Owner: lpil
 - License: apache-2.0
 - Created: 2024-02-15T16:55:41.000Z (over 1 year ago)
 - Default Branch: main
 - Last Pushed: 2024-06-16T19:06:05.000Z (over 1 year ago)
 - Last Synced: 2025-02-19T10:15:53.555Z (9 months ago)
 - Language: Gleam
 - Size: 35.2 KB
 - Stars: 17
 - Watchers: 2
 - Forks: 2
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 - Changelog: CHANGELOG.md
 - License: LICENSE
 
 
Awesome Lists containing this project
- awesome-gleam - youid - [📚](https://hexdocs.pm/youid/) - Generate and parse UUIDs (Packages / Cryptography)
 
README
          # youid
Generate and parse UUIDs.
[](https://hex.pm/packages/youid)
[](https://hexdocs.pm/youid/)
```sh
gleam add youid
```
```gleam
import youid/uuid
pub fn main() {
  uuid.v4_string()
  // -> "f55f6957-534b-45a7-af22-a1591431bc1f"
}
```
Spec conformant UUID v1, v3, v4, v5, and v7 generation.
Spec conformant UUID decoding for v1, v2, v3, v4, v5, and v7.
Spec: [https://www.ietf.org/rfc/rfc9562.txt](https://www.ietf.org/rfc/rfc9562.txt)
Wikipedia: [https://en.wikipedia.org/wiki/uuid](https://en.wikipedia.org/wiki/uuid)
Unless you have a specific reason otherwise, you probably either want the
random v4 or the time-based v1 or v7 versions.
Further documentation can be found at .
Many thanks to Gregggreg for [the original version][original] of this library.
[original]: https://gitlab.com/greggreg/gleam_uuid