lexical_uuid
Version, currently master branch1 version
- master branchlatestJun 9, 2018
github.com/crash2burn/lexical_uuid.cr
a port of Ruby's lexical_uuid
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
lexical_uuid:
github: crash2burn/lexical_uuid.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.24.2- License
- MIT
- Author
- crash2burn
Dependencies
Runtime Dependencies
- crystal_fnv*github: pawandubey/crystal_fnv
README
lexical_uuid.cr
This is a port of the ruby library lexical_uuid. It provides a way to go to and from ORDERED v1 UUIDS.
Installation
Add this to your application's shard.yml:
dependencies:
lexical_uuid:
github: crash2burn/lexical_uuid.cr
Usage
require "lexical_uuid"
uuid = LexicalUUID::UUID.new
puts uuid.to_guid #=> "00056e19-aa1e-2c81-33b7-7ccf993414bd"
from_bytes = LexicalUUID::UUID.new(uuid.to_bytes)
puts from_bytes.to_guid #=> "00056e19-aa1e-2c81-33b7-7ccf993414bd"
from_guid = LexicalUUID::UUID.new(uuid.to_guid)
puts from_guid.to_guid #=> "00056e19-aa1e-2c81-33b7-7ccf993414bd"
Contributing
- Fork it ( https://github.com/crash2burn/lexical_uuid.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Thanks
Contributors
- crash2burn crash2burn - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 9, 2018
- Crystal
0.24.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/crash2burn/lexical_uuid.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1