npm.io
1.0.3 • Published 7 years agoCLI

form-cli

Licence
GPL-2.0
Version
1.0.3
Deps
6
Size
25 kB
Vulns
0
Weekly
0

form-cli

A command line utility to populate placeholders in a form template and save or print the output.

Install:

Local Machine

npm i -g form-cli
Running Via Prebuilt Docker Image
$ docker pull tecfu/form-cli
$ docker run -d \
  -it \
  --name form-cli \
  --mount type=bind,source="$(pwd)",target=/home \
  form-cli:latest
Example Template:

Placeholders are surrounded by % symbol.

Hi there, %YOUR_NAME%.

Usage:

$ form-cli -t somefile.txt 

Options:

Options:
  --template, -t  File path of template.                              [required]
  --printer, -p   Name of printer to print to.
  --save, -s      Save the file to the path specified.          [default: false]

Keywords