hrx
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
Repository
hrx
Owner
Statistic
- 1
- 0
- 0
- 2
- 0
- about 4 years ago
- May 12, 2020
License
Apache License 2.0
Links
Synced at
Sun, 17 Nov 2024 01:32:15 GMT
Languages