NAME

js-const - Generate JavaScript from exported Perl constants

VERSION

version v0.1.7

SYNOPSIS

js-const -Ilib -m MyApp::Consts public/js/consts.js

DESCRIPTION

This is a command-line interface for JavaScript::Const::Exporter.

OPTIONS

-c symbol, --constants symbol

This specifies a constant or export tag to extract.

Can be specified multiple times.

If omitted, it will attempt to use the module's @EXPORT_OK.

-I path, --include path

Option paths to include in @INC.

-m module, --mpdile module

The module name to extract constants from.

-p, --pretty

Enable pretty printed JSON for arrays or objects (hashes).

-u, --use_var

Use var instead of const.

SEE ALSO

JavaScript::Const::Exporter

MooX::Options

SOURCE

The development version is on github at https://github.com/robrwo/JavaScript-Const-Exporter and may be cloned from git://github.com/robrwo/JavaScript-Const-Exporter.git

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/robrwo/JavaScript-Const-Exporter/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Robert Rothenberg <rrwo@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020-2022 by Robert Rothenberg.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)