dev-kit-0.1.0 is not a library.
Visit the last successful build:
dev-kit-0.1.11
Dev Kit
A collection of utilities and tools for development.
Features
1. URI Tools
- Decode: Decode URI components.
$ dev-kit uri decode 'foo%20bar' foo bar
2. JSON Tools
- Beauty: Format JSON strings or files. Supports alias
format.$ dev-kit json beauty '{"a":1,"b":2}' { "a": 1, "b": 2 } - Query: Extract content using JSONPath. Supports alias
search.$ dev-kit json query -q '$.a' '{"a":1,"b":2}' 1 - Diff: Compare two JSON objects, supports comparison after JSONPath extraction, and can call external Diff tools (e.g., IDEA, VSCode, Zed).
$ dev-kit json diff '{"a":1}' '{"a":2}' --diff-tool vscode
3. Time Tools
- Now: Get the current time, supports specified timezones and formats.
# Get current time (RFC3339) $ dev-kit time now 2023-10-27T10:00:00+08:00 # Get current millisecond timestamp $ dev-kit time now -f ts 1698372000000 - Parse: Parse time strings or timestamps.
# Parse timestamp $ dev-kit time parse 1698372000000 2023-10-27T10:00:00+08:00 # Parse string and convert format $ dev-kit time parse "2023-10-27 10:00:00" -f ts 1698372000000
Installation
cargo install --path .
Usage
dev-kit --help