Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NeuraLegion/har
HAR (HTTP Archive) parser in Crystal
https://github.com/NeuraLegion/har
crystal har http-archive http-archive-format json parser
Last synced: about 1 month ago
JSON representation
HAR (HTTP Archive) parser in Crystal
- Host: GitHub
- URL: https://github.com/NeuraLegion/har
- Owner: NeuraLegion
- License: mit
- Created: 2018-03-19T12:36:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T15:47:21.000Z (10 months ago)
- Last Synced: 2024-08-01T17:33:21.588Z (4 months ago)
- Topics: crystal, har, http-archive, http-archive-format, json, parser
- Language: Crystal
- Size: 336 KB
- Stars: 22
- Watchers: 18
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-crystal - HAR - HAR (HTTP Archive) parser (Data Formats)
- awesome-crystal - HAR - HAR (HTTP Archive) parser (Data Formats)
README
# har [![CI](https://github.com/NeuraLegion/har/actions/workflows/ci.yml/badge.svg)](https://github.com/NeuraLegion/har/actions/workflows/ci.yml) [![Releases](https://img.shields.io/github/release/NeuraLegion/har.svg)](https://github.com/NeuraLegion/har/releases) [![License](https://img.shields.io/github/license/NeuraLegion/har.svg)](https://github.com/NeuraLegion/har/blob/master/LICENSE)
HAR parser for version 1.2
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
har:
github: NeuraLegion/har
```## Usage
```crystal
json = HAR.from_file(file)
# or from string using HAR.from_string(String)
pp json
json.version
# => 1.2
json.entries
# etc..
```## Development
Pretty much done.
If there is a needed feature please open an issue.## Testing
To run specs with debugging output you will have to set the `LOG_LEVEL` to debug.
```crystal
LOG_LEVEL=debug crystal spec
```## Contributing
1. [Fork it](https://github.com/NeuraLegion/har/fork)
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request## Contributors
- [bararchy](https://github.com/bararchy) Bar Hofesh - creator, maintainer
- [Sija](https://github.com/Sija) Sijawusz Pur Rahnama - contributor, maintainer