Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Latest commit

 

History

History
36 lines (19 loc) · 1.06 KB

README.md

File metadata and controls

36 lines (19 loc) · 1.06 KB

jq-hopkok jq utility library

A bunch of jq snippets and shell scripts to manipulate JSON files. See also jqnpm for jq modules/packages.

jq is a lightweight and flexible command-line JSON processor.


JSON URL utils

Useful for manipulating a URL as an object with individual components instead of a complex string.

Usage

# URL to components
echo '"https://server.example.com/deep/path/file.ext?with-a-parameter=true#and-a-fragment"' | ./to-components.sh

# Join components to a URL
echo '"https://server.example.com/deep/path/file.ext?with-a-parameter=true#and-a-fragment"' | ./to-components.sh | ./from-components.sh

License

Copyright (c) 2014, 2015, Joel Purra https://joelpurra.com/ All rights reserved.

When using jq-hopkok, comply to at least one of the three available licenses: BSD, MIT, GPL. Please see the LICENSE file for details.