Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kkazuo/scru128

SCRU128 ID generator
https://github.com/kkazuo/scru128

Last synced: about 14 hours ago
JSON representation

SCRU128 ID generator

Awesome Lists containing this project

README

        

SCRU128 ID is yet another attempt to supersede UUID for the users
who need decentralized, globally unique time-ordered identifiers.

See [the spec](https://github.com/scru128/spec) for details.

## Features

- Generate SCRU128 ID.

## Getting started

```shell
$ dart pub add scru128
```

Then import it.

```dart
import 'package:scru128/scru128.dart';
```

## Usage

To generate single ID.

```dart
final scru128id = Scru128Id();
print(scru128id);
```

You can iterate id for generating many ids.

```dart
final scru128gen = Scru128Generator();
for (final id in scr128gen) {
print(id);
}
```

## Additional information

See also

- https://github.com/kkazuo/scru128

## License

Licensed under the Apache License, Version 2.0.