typeid 1.0.1 copy "typeid: ^1.0.1" to clipboard
typeid: ^1.0.1 copied to clipboard

A spec conformant implementation of the TypeID standard. TypeIDs are K-sortable, globally unique identifier inspired by Stripe IDs

example/typeid_example.dart

import 'package:typeid/typeid.dart';

void main() {
  final id = TypeId.generate('user');
  print(id);

  final decoded = TypeId.decode(id);

  print(decoded.prefix);
  print(decoded.suffix);
  print(decoded.uuid.version);
}
5
likes
160
pub points
58%
popularity

Publisher

verified publishertbd.website

A spec conformant implementation of the TypeID standard. TypeIDs are K-sortable, globally unique identifier inspired by Stripe IDs

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

uuid

More

Packages that depend on typeid