Skip to content
/ typeId Public

Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs

Notifications You must be signed in to change notification settings

cbuctok/typeId

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeID .Net Standard 2.1

A C# implementation of TypeIDs (Version 0.2.0)

License: Apache 2.0

TypeIDs are a modern, type-safe, globally unique identifier based on the upcoming UUIDv7 standard. They provide a ton of nice properties that make them a great choice as the primary identifiers for your data in a database, APIs, and distributed systems. Read more about TypeIDs in their spec.

This particular implementation provides a C# library for generating and parsing TypeIDs.

Usage

Import the library

using TypeId;

Create a TypeID

var typeId = TypeId.NewTypeId("prefix");

Parse a TypeID

var typeId = TypeId.Parse("contact_2x4y6z8a0b1c2d3e4f5g6h7j8k");

Get the string representation of a TypeID

var typeId = TypeId.NewTypeId("prefix");
var typeIdString = typeId.ToString();

About

Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages