An actual command-line-interface (CLI) to project JSON files using JM2MP. This module ./cli.js is actually a command-line-interface (CLI) script created to ease execution of JM2MP.JS projections as part of any shell script on-line interaction or batch processing.
Author
- Luis Maria CAMARA ROSSI
Copyright
- Universidad Nacional de Educación a Distancia (U.N.E.D.) 2026
License
- BSD-3-Clause
Example
#!/usr/bin/env node
# The argument -i or --input must be used to specify the JSON file which will be transformed.
# The argument -p or --projection must be used to specify the JM2MP file used to transform the input into output.
# The argument -o or --output must be used to specify the filename where save the resultant JSON document.
node ${JM2MP_HOME}/cli.js -i ./input.json -i -p ./projection.json -o ./output.json