# small-templater

> small simple template engine

Latest version **1.0.0** (published 2018-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install small-templater
pnpm add small-templater
yarn add small-templater
bun add small-templater
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-09-21 |
| First published | 2018-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | x-foby |
| Maintainers | x-foby |
| Keywords | templater, template, js, javascript, ts, typescript |

## Links

- npm: https://www.npmjs.com/package/small-templater
- Repository: https://github.com/x-foby/small-templater
- Homepage: https://github.com/x-foby/small-templater#readme
- Issues: https://github.com/x-foby/small-templater/issues
- npm.io page: https://npm.io/package/small-templater

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-09-21

## README

# small-templater

> Simple small template engine

## Table of contents

- [Install](#install)
- [Usage](#usage)
- [Contribution and License Agreement](#contribution-and-license-agreement)
- [License](#license)

## Install

```bash
npm install small-templater
```

## Usage

```ts
import { SmallTemplater } from "small-templater";

const smallTemplater: SmallTemplater = new SmallTemplater();

// for objects
smallTemplater.addEntity("foo", { bar: "baz" });
console.log(smallTemplater.parse("foo.bar is { foo.bar }"));

// for arrays
smallTemplater.addEntity("foo", { bar: ["baz"] });
console.log(smallTemplater.parse("foo[bar][0] is { foo[bar][0] }"));
```
See tests for more info.

## Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. `</legalese>`

## License

Copyright (c) 2018, x-foby. (MIT License)

See LICENSE for more info.

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