# tplobj

> Simple templating for objects.

Latest version **0.0.2** (published 2015-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install tplobj
pnpm add tplobj
yarn add tplobj
bun add tplobj
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-08-02 |
| First published | 2015-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kohányi Róbert |
| Maintainers | kohanyirobert |
| Keywords | template, interpolate |

## Links

- npm: https://www.npmjs.com/package/tplobj
- Repository: https://github.com/kohanyirobert/tplobj
- Homepage: https://github.com/kohanyirobert/tplobj#readme
- Issues: https://github.com/kohanyirobert/tplobj/issues
- npm.io page: https://npm.io/package/tplobj

## Recent versions

- 0.0.2 (latest) — 2015-08-02
- 0.0.1 — 2015-08-01
- 0.0.0 — 2015-08-01

## README

# tplobj [![Build Status][1]][2]

## Install

```
npm install tplobj
```

## Example

```javascript
var spawn = require("child_process").spawn;
var tplojb = require("tplobj")("${", "}");

var tpl = {
  command: "ffmpeg",
  args: [
    "-i", "${input}",
    "-vn",
    "-acodec", "${codec}",
    "${output}"
  ],
  options: {
    cwd: "${directory}"
  }
};

var obj = {
  input: "C:\\Users\\John\\Downloads\\My favorite music video.mkv",
  codec: "libmp3lame",
  output: "D:\\Music\\My favorite song.mp3",
  directory: "C:\\Users\\John\\AppData\\Local\\Temp"
};

var res = tplobj(tpl, obj);

var ffmpeg = spawn(res.command, res.args, res.options);
...
```

[1]: https://travis-ci.org/kohanyirobert/tplobj.svg?branch=master
[2]: https://github.com/kohanyirobert/tplobj

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