# fill-in-the-blanks

> Fills in a templated file with given inputs and produces an output file

Latest version **1.0.3** (published 2017-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install fill-in-the-blanks
pnpm add fill-in-the-blanks
yarn add fill-in-the-blanks
bun add fill-in-the-blanks
```

Provides the command `fill-in-the-blanks`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-06-28 |
| First published | 2017-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Calvin Fernandes |
| Maintainers | cfernandes |

## Links

- npm: https://www.npmjs.com/package/fill-in-the-blanks
- Repository: https://github.com/calvinlfer/fill-in-the-blanks
- Homepage: https://github.com/calvinlfer/fill-in-the-blanks#readme
- Issues: https://github.com/calvinlfer/fill-in-the-blanks/issues
- npm.io page: https://npm.io/package/fill-in-the-blanks

## Dependencies (2)

- [dot](https://npm.io/package/dot.md) ^1.1.2
- [commander](https://npm.io/package/commander.md) ^2.10.0

## Recent versions

- 1.0.3 (latest) — 2017-06-28
- 1.0.2 — 2017-06-28
- 1.0.1 — 2017-06-28
- 1.0.0 — 2017-06-28

## README

# Fill-In-The-Blanks (F.I.T.B.)
The F.I.T.B. is to take opinionated templated JSON files and JSON data
and then produces output by filling in the placeholders with data.

## Installation
`npm install -g fill-in-the-blanks`

## Usage
`fill-in-the-blanks <templateFile> <dataFile> <outputFile>`

## Example
Templated file with placeholders
backup-template.json
```json
{
    "exampleField": "{{=param.fieldA}}",
    "sevenFold": "{{=param.fieldB}}",
    "normal": "just some data"
}
```

Data file
data.json
```
{
    "fieldA": "valueForFieldA",
    "fieldB": "anotherValueForFieldB"
}
```

Executing `fill-in-the-blanks backup-template.json data.json output.json`
will produce:

Output file
output.json
```
{
    "exampleField": "valueForFieldA",
    "sevenFold": "anotherValueForFieldB",
    "normal": "just some data"
}
```

---
_Source: https://npm.io/package/fill-in-the-blanks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
