Last updated:
0 purchases
scru128
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
copied to clipboard
Then import it.
import 'package:scru128/scru128.dart';
copied to clipboard
Usage #
To generate single ID.
final scru128id = Scru128Id();
print(scru128id);
copied to clipboard
You can iterate id for generating many ids.
final scru128gen = Scru128Generator();
for (final id in scr128gen) {
print(id);
}
copied to clipboard
Additional information #
See also
https://github.com/kkazuo/scru128
License #
Licensed under the Apache License, Version 2.0.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.