vlsid 1.0.0 copy "vlsid: ^1.0.0" to clipboard
vlsid: ^1.0.0 copied to clipboard

This is a variable length sortable id generator.

Variable Length Sortable ID (VLSID) #

This is a variable length sortable id generator. It is designed to generate sortable Ids of any length.

Features #

  • Generate sortable string ids.
  • Ids can be anylength (minimum of 8 characters).
  • Uses base64url characters, so ids are url safe.

Usage #

// Create a factory for ids
final vlsid = Vlsid();

// Generate an id from the factory
final id1 = vlsid.nextId();

// Both can be done in one line
final id2 = Vlsid().nextId();

print(id1); //_MorKCLMA7VOQWy
print(id2); //_MorKCLVDBFTbQM

Additional information #

I created this package to generate sortable Ids at different length. Reach out to me on github if you experience any bugs.

2
likes
150
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

This is a variable length sortable id generator.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on vlsid