@appveen/faml

A CLI tool to fill yaml placeholder

Usage no npm install needed!

<script type="module">
  import appveenFaml from 'https://cdn.skypack.dev/@appveen/faml';
</script>

README

faml

A CLI tool to fill yaml placeholder

Install

npm i -g @appveen/faml

Running Options

Run for single file

faml -f <filename>

Run for multiple files in a directory

faml -d <directory>

Change placeholder prefix

faml -p <prefix>
#default prefix __ (underscore twice)

Change placeholder suffix

faml -s <suffix>
#default suffix __ (underscore twice)

Examples

Example 1

faml -f test_app.yaml
# This will look for file in the current working directory

Example 2

faml -f ../test_app.yaml
# This will look for file in the parent directory of the current working directory

Example 3

faml -f /usr/ubuntu/test_app.yaml
# This will look for file in the given path

Example 4

faml -f test_app.yaml -p $ -s $
# This will look for all placeholders in file with $ as prefix and suffix