hrx
Version, currently master branch1 version
- master branchlatestNov 8, 2020
github.com/straight-shoota/hrx
Parser for the [Human Readable Archive (HRX)](https://github.com/google/hrx) format
1 stars
2 dependents
License: Apache-2.0
Installation
# Add this to your shard.yml
dependencies:
hrx:
github: straight-shoota/hrx
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 0.35.0- License
- Apache-2.0
- Author
- Johannes Müller
Dependencies
This version declares no dependencies.
README
hrx
This shard provides a parser for the Human Readable Archive (HRX) format.
Installation
-
Add the dependency to your
shard.yml:dependencies: hrx: github: straight-shoota/hrx -
Run
shards install
Usage
require "hrx"
File.write("archive.hrx", "<==> foo.txt\nFOO\n<==> bar.txt\nBAR")
archive = File.open("archive.hrx", "r") do |io|
HRX.parse(io)
end
archive["foo.txt"] # => HRX::File.new("foo.txt", "FOO", nil, 1, 6)
archive["bar.txt"] # => HRX::File.new("bar.txt", "BAR", nil, 3, 6)
Contributing
- Fork it (https://github.com/straight-shoota/hrx/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
Contributors
- Johannes Müller - creator and 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
- Nov 8, 2020
- Crystal
>= 0.35.0- Indexed
- yes
Dependents
Repository
github.com/straight-shoota/hrx
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 26, 2026
- Synced
- Sep 26, 2026
- Versions
- 1