# smpltmpl

> Simple templates for Node.js based on ECMAScript template literals syntax

Latest version **1.0.2** (published 2017-11-14) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2017-11-14 |
| First published | 2017-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Artem Sapegin |
| Maintainers | sapegin |
| Keywords | template, engine, ecmascript, es6, es2015, literal |

## Links

- npm: https://www.npmjs.com/package/smpltmpl
- Repository: https://github.com/sapegin/smpltmpl
- Issues: https://github.com/sapegin/smpltmpl/issues
- npm.io page: https://npm.io/package/smpltmpl

## Dependencies (1)

- [babel-code-frame](https://npm.io/package/babel-code-frame.md) ^6.26.0

## Recent versions

- 1.0.2 (latest) — 2017-11-14
- 1.0.1 — 2017-11-14
- 1.0.0 — 2017-11-13

## README

# smpltmpl

[![Build Status](https://travis-ci.org/sapegin/smpltmpl.svg)](https://travis-ci.org/sapegin/smpltmpl)

Simple templates for Node.js based on ECMAScript [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) syntax.

## Installation

```bash
npm install --save smpltmpl
```

## Usage

Using a string:

```js
const { template } = require('smpltmpl');
console.log(template('Hello ${who}!', { who: 'templates' }));
```

Using a template file:

```js
const { templateFromFile } = require('smpltmpl');
console.log(templateFromFile('template.txt', { who: 'templates' }));
```

## Change log

The change log can be found on the [Releases page](https://github.com/sapegin/smpltmpl/releases).

## Contributing

Everyone is welcome to contribute. Please take a moment to review the [contributing guidelines](Contributing.md).

## Authors and license

[Artem Sapegin](http://sapegin.me) and [contributors](https://github.com/sapegin/smpltmpl/graphs/contributors).

MIT License, see the included [License.md](License.md) file.

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