Skip to content

mr-mixas/NDTools

Repository files navigation

NAME

App::NDTools - Command line tools for nested structures

CI Coverage Status CPAN version

VERSION

Version 0.6.3

DESCRIPTION

Diff, patch, process, query JSON and YAML with ease.

TOOLS

nddiff

Human friendly and machine readable diffs.

ndpatch

Apply diff to the structure.

ndproc

Process structure using rules and modules.

Available modules:

Insert           Insert value into structure
JsonMergePatch   Apply JSON Merge Patch (rfc7396) patches
JsonPatch        Apply JSON Patch (rfc6902) patches
Merge            Merge structures according provided rules
Patch            Apply nested diff to the structure
Pipe             Modify structure using external process
Remove           Remove specified parts from structure
ndquery

Examine structure and dump it's parts.

INSTALL

From CPAN:

cpanm App::NDTools

Build deb package:

git clone https://github.com/mr-mixas/NDTools.git
cd NDTools
DEBUILD_OPTS="--no-lintian -uc -us -b" make -C dist deb

Use without installation:

git clone https://github.com/mr-mixas/NDTools.git
cd NDTools
source ./SOURCEME # install depends to the current directory and set ENV

LIMITATIONS

YAML::XS should be additionally installed for YAML support. YAML::XS 0.67 or later and JSON::PP required for correct booleans dump; 1 for true and 0 for false used for earlier YAML::XS versions.

AUTHOR

Michael Samoglyadov, <mixas at cpan.org>

BUGS

Sure, report them using https://github.com/mr-mixas/NDTools/issues

SEE ALSO

jq, json-delta

Struct::Diff, Struct::Path, Struct::Path::PerlStyle

LICENSE AND COPYRIGHT

Copyright 2016-2019 Michael Samoglyadov

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.