Skip to content

kkazuo/scru128

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

SCRU128 ID generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages