sane_uuid 1.0.0-alpha.5 copy "sane_uuid: ^1.0.0-alpha.5" to clipboard
sane_uuid: ^1.0.0-alpha.5 copied to clipboard

A sane UUID implementation with support for generating and handling v1, v4 and v5 UUIDs according to RFC4122.

sane_uuid #

A properly designed UUID library for Dart.

  • v1, v4, and v5 generation
  • Uuid type with equality, comparison and accessors for properties defined by RFC4122
  • Support for all syntactically correct UUIDs (regardless of RFC4122 semantics)

This library is in an alpha stage and not ready for production use.

Usage #

A simple usage example:

import 'package:sane_uuid/uuid.dart';

// randomly generated using secure random number generator
final Uuid randomUuid = Uuid.v4();
// Prints properly formatted UUID, e.g.: a8796ef4-8767-4cd0-b432-c5e93ba120df
print(randomUuid);

// parse any common UUID string
final parsedUuid = Uuid.fromString(
  'a8796ef4-8767-4cd0-b432-c5e93ba120df',
);

// UUID objects with the same data are actually equal
assertTrue(randomUuid == parsedUuid);

For more examples, see the examples page.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

License #

This project is released under the MIT License. That includes every file in this repository, unless explicitly stated otherwise at the top of a file. A copy of the license text can be found in the LICENSE file.

3
likes
130
pub points
68%
popularity

Publisher

verified publisherbjoernpetersen.net

A sane UUID implementation with support for generating and handling v1, v4 and v5 UUIDs according to RFC4122.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

crypto, meta

More

Packages that depend on sane_uuid