A fast, portable, single-binary toolkit for everyday developer chores.
Format JSON · Convert JSON ⇄ YAML · Check TCP ports
- One binary, no runtime. Written in Go, statically built for Linux, macOS and Windows (amd64 and arm64).
- Correct by default. Large integers stay exact, numbers keep their type across JSON ⇄ YAML, duplicate YAML keys are rejected.
- Pipe-friendly. Every command reads a file or standard input and writes clean output to standard output.
- Script-friendly exit codes.
0on success,1on any error.
Pre-built binaries: download the file for your platform from the Releases page.
With Go (1.22+):
go install github.com/hamrezoffic-source/devkit@latestFrom source:
git clone https://github.com/hamrezoffic-source/devkit.git
cd devkit
go build -o devkit .Check the installation:
devkit --version# Pretty-print JSON
echo '{"name":"devkit","tags":["go","cli"]}' | devkit json format
# JSON -> YAML
devkit json to-yaml config.json > config.yaml
# YAML -> JSON
devkit yaml to-json config.yaml
# Is the port open?
devkit port check example.com 443| Command | Description | Short alias |
|---|---|---|
devkit json format [file|-] |
Pretty-print JSON with 2-space indentation | devkit format |
devkit json to-yaml [file|-] |
Convert JSON to YAML | devkit json-to-yaml |
devkit yaml to-json [file|-] |
Convert YAML to formatted JSON | devkit yaml-to-json |
devkit port check <host> <port> [--timeout s] |
Test whether a TCP port accepts connections | devkit check-port |
devkit --version |
Print the version | devkit -v |
devkit --help |
Show usage | devkit -h |
Omit the file argument, or pass -, to read from standard input.
devkit json format input.json
cat input.json | devkit json format -Large integers such as 9007199254740993 are preserved without floating-point rounding. Input containing more than one JSON value is rejected.
$ echo '{"port":8080,"debug":true,"name":"api"}' | devkit json to-yaml
debug: true
name: api
port: 8080- Numbers, booleans and
nullkeep their types in both directions. - Empty YAML input converts to
null. - Multiple YAML documents (
---) become a JSON array. - YAML keys must be strings; duplicate keys and non-finite numbers (
.inf,.nan) are rejected because JSON cannot represent them.
$ devkit port check example.com 443
open
$ devkit port check 127.0.0.1 9 --timeout 1
closed
error: dial tcp 127.0.0.1:9: connect: connection refusedThe default timeout is 3 seconds.
- JSON formatting and JSON ⇄ YAML conversion
- TCP port check
-
--versionflag and cross-platform releases - Split into
cmd/andinternal/packages - Hashing (
sha256,sha1,md5), Base64, UUID, JWT decode, Unix timestamps - Concurrent multi-port scan (
80,443,8000-8010) - Colored output with
NO_COLORsupport - GoReleaser, Homebrew and Scoop packages
Ideas and feedback are welcome in Issues.
Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.
MIT © hamrezoffic-source