Git Product home page Git Product logo

xml-yaml-json-ini's Introduction

xml-yaml-json-ini

cross format converter for any of XML, YAML/YML, JSON and INI formats.

Dependencies

Presetting

XML/SAX/ParserDetails.ini is required (this example was found within XML::SAX itself):

[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces = 1
http://xml.org/sax/features/validation = 0

Usage

NAME
    xc - cross format converter for any of XML, YAML, JSON and INI formats.

SYNOPSIS
        xc -f FORMAT -t FORMAT [OPTIONS]
        xc -r FORMAT -w FORMAT [OPTIONS]
        xc --from=FORMAT --to=FORMAT [OPTIONS]

DESCRIPTION
    xc is a naive command line tool to convert data between XML, YAML, JSON
    and INI formats.

OPTIONS
    -h, --help
        Outputs this help page.

    -r FORMAT, -f FORMAT, --from=FORMAT
        The mandatory option assumes the input file has the specified
        format.

    -w FORMAT, -t FORMAT, --to=FORMAT
        The mandatory option assumes the output file has the specified
        format.

    --sort
        Sort output (XML and JSON only).

    --pretty
        Beautify the output.

    --skip-empty
        Skip empty fields when parsing and displaying XML.

    --raw
        Make JSON parsing more permissive (enable an end-comma after a last
        item; shell-style comments and C-style comments; allow bare keys and
        single quotes).

    --xml-decl[=DECL]
        Output XML declaration.

    --default=SECTION
        Specifies a section for INI files to be used for default values for
        parameters outside a section.

FORMATS
    The following formats are supported:

    INI
    JSON
    XML
    YAML (YML is allowed as shortcut)

SEE ALSO
    JSON, JSON::XS, JSON::PP

    YAML::Tiny

    XML::Simple

    Config::IniFiles

COPYRIGHT
    Copyright 2017, 2020, 2021 Ildar Shaimordanov
    <[email protected]>

        MIT

xml-yaml-json-ini's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mvoz

xml-yaml-json-ini's Issues

xc.pl: Unknown reader: ini

On openSUSE LEAP 42.3, getting

linux@linux:~> perl xc.pl -f INI -t yaml ... 
xc.pl: Unknown reader: ini

linux@linux:~> perl xc.pl --from=ini -t yaml ... 
xc.pl: Unknown reader: ini

Had installed the dependencies with

sudo PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install XML::Simple
sudo PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install YAML::Tiny'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.