• Stars
    star
    434
  • Rank 100,274 (Top 2 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created almost 7 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Format Agnostic jQ -- process various formats with libjq

faq

Go Report Card Build Status Godoc Releases LICENSE

faq is a tool intended to be a more flexible jq, supporting additional formats. The additional formats are converted into JSON and processed with libjq.

Supported formats:

  • BSON
  • Bencode
  • JSON
  • Property Lists
  • TOML
  • XML
  • YAML

How do you pronounce faq? The same way you would insult a particularly nasty structured document: "F♥︎♥︎♥︎ You".

For example usage, read the examples doc.

Installation

The master branch may be in an unstable or even broken state during development. Please use releases instead of the master branch in order to get stable binaries.

Behavior such as command-line flags may change causing shell scripts using faq to break after upgrading. jq programs are stable and should be considered a bug if it does not match jq behavior.

  • Statically compiled binaries are available on the releases page: just download the binary for your platform, and make it executable.
  • A Homebrew formula can be installed with brew install jzelinskie/faq/faq
  • RPMs are available via a COPR repository.
  • There's an AUR PKGBUILD for Arch Linux that can be installed with your favorite AUR tooling.

Development

In order to compile the project, the latest stable version of Go and knowledge of a working Go environment are required. A version of jq greater than 1.6-rc2 that includes the libjq header files must also be installed on the system.

git clone [email protected]:jzelinskie/faq.git
cd faq
make all

With Docker and buildx bake:

# build docker image and output to docker with faq:local tag (default)
docker buildx bake image-local

# create builder for multi-arch build (see below)
docker buildx create --name faq-builder

# build multi-platform image
docker buildx bake image-all

# create the artifact matching your current platform in ./dist
docker buildx bake artifact

# create artifacts for many platforms in ./dist
docker buildx bake artifact-all

# run tests
docker buildx bake test

# lint
docker buildx bake lint

License

faq is made available under the Apache 2.0 license. See the LICENSE file for details.

More Repositories

1

geddit

golang reddit api wrapper
Go
164
star
2

conventions

documentation package for Go conventions
Go
98
star
3

homebrew-duckdns

automatically update duckdns via launchd on OSX
Ruby
35
star
4

dotfiles

my hidden config files
Lua
33
star
5

whirlpool

whirlpool cryptographic hashing library
Go
27
star
6

cuddlefs

Kubernetes userspace filesystem
Go
21
star
7

w8

unix utility for waiting on ports, http status, and more
Rust
7
star
8

pascal-p2

A mirror of Niklaus Wirth's P2 Pascal Compiler
Pascal
7
star
9

dango

a composable framework for BitTorrent trackers
Go
7
star
10

kademlia

A maximally flexible Kademlia DHT
Go
5
star
11

cobrautil

A collection of utility functions when using Cobra.
Go
5
star
12

readgroup

synchronization for reading the same io.Reader concurrently
Go
4
star
13

monokai-soda.vim

monokai soda vim theme
Lua
4
star
14

imgor

an s3 powered image hosting webapp
Go
4
star
15

grpcwebproxy

Improbable's grpcwebproxy with improved UX.
Go
4
star
16

must

utility functions that panic when an assumption isn't met
Go
4
star
17

q

the search for a flexible SQL query composition library for Go
Go
4
star
18

awesome-windows-opinionated

An awesome & opinionated list of best applications and tools for Windows
3
star
19

move_torrents.py

Find and replace filepaths in qBittorrent v3.3+
Python
3
star
20

iocage-plugin-murmur

iocage plugin for mumble servers
Shell
2
star
21

jzelinskie.github.com

my blog
HTML
2
star
22

homebrew-go-get

install go binaries with brew
Ruby
2
star
23

benchpress

Go
2
star
24

reflexd

Automate your torrent client based on the filesystem
Python
1
star
25

gochugaru

A SpiceDB client library striving to be as ergonomic as possible
Go
1
star
26

JDWM

My custom patched DWM 5.8.2
C
1
star
27

persistent

various persistent data structures
Go
1
star
28

stringz

additional string manipulations
Go
1
star