scru128 1.1.0 scru128: ^1.1.0 copied to clipboard
SCRU128 ID is yet another attempt to supersede UUID for the users who need decentralized, globally unique time-ordered identifiers.
SCRU128 ID is yet another attempt to supersede UUID for the users who need decentralized, globally unique time-ordered identifiers.
See the spec for details.
Features #
- Generate SCRU128 ID.
Getting started #
$ dart pub add scru128
Then import it.
import 'package:scru128/scru128.dart';
Usage #
To generate single ID.
final scru128id = Scru128Id();
print(scru128id);
You can iterate id for generating many ids.
final scru128gen = Scru128Generator();
for (final id in scr128gen) {
print(id);
}
Additional information #
See also
License #
Licensed under the Apache License, Version 2.0.