N|Solid

UUIDX.

Static Badge Repository Size Last Commit Status

Visit us at www.nasriya.net.

A lightweight package to generate UUIDs on the go.

Made with ❤️ in Palestine 🇵🇸

Important

🌟 Support Our Open-Source Development! 🌟 We need your support to keep our projects going! If you find our work valuable, please consider contributing. Your support helps us continue to develop and maintain these tools.

Click here to support us!

Every contribution, big or small, makes a difference. Thank you for your generosity and support!


Generating UUID is never easier.

Installation

Add the package using Dart CLI:

dart pub add uuidx

Or manually in pubspec.yaml:

dependencies:
  uuidx: ^latest_version

Importing

import 'package:uuidx/uuidx.dart'; // imported singleton instance

Usage

To generate a UUIDs, call the method of the needed version whenever you need it:

// UUID v4 (random)
final idv4 = uuidx.v4.generate();

// UUID v4 (unique within instance)
final uniqueId = uuidx.v4.generateUnique();

// UUID v5 (deterministic)
final idv5 = uuidx.v5('nasriya.net', idv4);

print(idv4);    // ⇨ 'f47ac10b-58cc-4372-a567-0e02b2c3d479'
print(idv5);    // ⇨ deterministic UUID based on input

Thank you!


License

Please read the license from here.

Libraries

uuidx
uuidx