typeid

Creator: coderz1093

Last updated:

0 purchases

typeid Image
typeid Images
Add to Cart

Description:

typeid

Dart TypeID #
A spec conformant implementation of typeid in Dart.


Note
This repo contains the typeid repo as a submodule to reflect which version of the spec has been implemented and to maintain a single source of truth for test vectors

Usage #
This package is available and can be consumed via pub.dev
ID Generation #
import 'package:typeid/typeid.dart';

void main() {
final id = TypeId.generate('user');
print(id);
}
copied to clipboard
Decoding #
import 'package:typeid/typeid.dart';

void main() {
final id = TypeId.decode('user_01hsq6r6amekxrefpecdfp561f');

print(decoded.prefix);
print(decoded.suffix);
print(decoded.uuid.version);
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.