js-const - Generate JavaScript from exported Perl constants
version v0.1.0
js-const -Ilib -m MyApp::Consts public/js/consts.js
-c
--constants
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.
@EXPORT_OK
-I
--include
Option paths to include in @INC.
@INC
-m
--mpdile
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.
JavaScript::Const::Exporter
MooX::Options
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
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.
Robert Rothenberg <rrwo@cpan.org>
This software is Copyright (c) 2020 by Robert Rothenberg.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install JavaScript::Const::Exporter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JavaScript::Const::Exporter
CPAN shell
perl -MCPAN -e shell install JavaScript::Const::Exporter
For more information on module installation, please visit the detailed CPAN module installation guide.