App-EscapeUtils
view release on metacpan or search on metacpan
script/js-unescape view on Meta::CPAN
#!perl
# Note: This script is a CLI for Riap function /App/EscapeUtils/js_unescape
# and generated automatically using Perinci::CmdLine::Gen version 0.491
our $DATE = '2019-12-15'; # DATE
our $DIST = 'App-EscapeUtils'; # DIST
our $VERSION = '0.002'; # VERSION
use 5.010001;
use strict;
use warnings;
use Perinci::CmdLine::Any;
my $cmdline = Perinci::CmdLine::Any->new(
url => "/App/EscapeUtils/js_unescape",
program_name => "js-unescape",
read_config => 0,
read_env => 0,
);
$cmdline->run;
# ABSTRACT: Interpret lines of input (in standard input or arguments) as JSON strings and return the decoded value
# PODNAME: js-unescape
__END__
=pod
=encoding UTF-8
=head1 NAME
js-unescape - Interpret lines of input (in standard input or arguments) as JSON strings and return the decoded value
=head1 VERSION
This document describes version 0.002 of js-unescape (from Perl distribution App-EscapeUtils), released on 2019-12-15.
=head1 SYNOPSIS
Usage:
% js-unescape [options] <string> ...
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
=item B<--string>=I<s@>*
Can be specified multiple times.
=item B<--strings-json>=I<s>
See C<--string>.
=back
=head2 Output options
=over
=item B<--format>=I<s>
Choose output format, e.g. json, text.
Default value:
undef
=item B<--json>
Set output format to json.
=item B<--naked-res>
When outputing as JSON, strip result envelope.
Default value:
0
By default, when outputing as JSON, the full enveloped result is returned, e.g.:
[200,"OK",[1,2,3],{"func.extra"=>4}]
The reason is so you can get the status (1st element), status message (2nd
element) as well as result metadata/extra result (4th element) instead of just
the result (3rd element). However, sometimes you want just the result, e.g. when
( run in 0.950 second using v1.01-cache-2.11-cpan-39bf76dae61 )