v2.0.1
ulid
字典序可排序的128位識別碼(UUID),包含48位時間戳和80位隨機位。標準編碼為26個字元的字串,而非36個字元的UUID。
55喜歡 2.1萬近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
Dart 中的 Ulid 實現
以下為英文專案原文快照,最新內容請造訪 GitHub。
Lexicographically sortable, 128-bit identifier (UUID) with 48-bit timestamp and 80 random bits. Canonically encoded as a 26 character string, as opposed to the 36 character UUID.
Original implementation: https://github.com/alizain/ulid/
Specification: https://github.com/ulid/spec
A simple usage example:
import 'package:ulid/ulid.dart';
void main() {
print(Ulid());
print(Ulid().toUuid());
print(Ulid().toCanonical());
print(Ulid().toBase32()); // uppercase, spec-aligned format
}