Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkazuo/scru128
SCRU128 ID generator
https://github.com/kkazuo/scru128
Last synced: about 14 hours ago
JSON representation
SCRU128 ID generator
- Host: GitHub
- URL: https://github.com/kkazuo/scru128
- Owner: kkazuo
- License: apache-2.0
- Created: 2022-12-02T08:08:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-11T08:53:55.000Z (over 1 year ago)
- Last Synced: 2023-08-09T13:57:56.458Z (over 1 year ago)
- Language: Dart
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.