4 releases (2 breaking)

0.3.0 Nov 10, 2021
0.2.0 Nov 2, 2021
0.1.1 Sep 11, 2021
0.1.0 Sep 10, 2021

#85 in #input-file

Apache-2.0 and LGPL-3.0-or-later

64KB
1.5K SLoC

Rust 1K SLoC // 0.0% comments AsciiDoc 279 SLoC // 0.1% comments

dsconv

CI Version License

dsconv is a command-line utility for converting from one data-serialization format to another.

Installation

Via a package manager

OS Method Package Command
Any Cargo dsconv cargo install dsconv

Via pre-built binaries

Pre-built binaries for Linux, macOS and Windows are available on the release page.

How to build and install

Please see BUILD.adoc.

Usage

dsconv 0.3.0
A data-serialization format converter

USAGE:
    dsconv [FLAGS] [OPTIONS] [FILE]

FLAGS:
        --list-input-formats     List supported input formats
        --list-output-formats    List supported output formats
    -h, --help                   Prints help information
    -V, --version                Prints version information

OPTIONS:
    -f, --from <FORMAT>                  Specify input format [possible values: CBOR, Hjson, JSON, JSON5, MessagePack,
                                         RON, TOML, YAML]
    -t, --to <FORMAT>                    Specify output format [possible values: CBOR, JSON, MessagePack, TOML, YAML]
    -o, --output <FILE>                  Output to <FILE> instead of stdout
    -p, --pretty <BOOLEAN>               Output as a pretty-printed string [possible values: true, false]
        --color <WHEN>                   Specify when to use colored output [default: auto]  [possible values: auto,
                                         always, never]
        --generate-completion <SHELL>    Generate shell completion [possible values: zsh, bash, fish, powershell,
                                         elvish]

ARGS:
    <FILE>    Input from <FILE>

See dsconv(1) for more details.

See dsconv(1) for more details.

Changelog

Please see CHANGELOG.adoc.

Configuration

If you want to change the default behavior, you can use the configuration file.

See dsconv-config.toml(5) for more details.

Contributing

Please see CONTRIBUTING.adoc.

License

Copyright © 2021 Shun Sakai (see AUTHORS.adoc)

This program is distributed under the terms of the Apache License 2.0.

See COPYING for more details.

Dependencies

~19–31MB
~407K SLoC