# flatstache

> Simple string template expansion using curly Mustache braces

Latest version **1.0.0** (published 2014-03-28) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2014-03-28 |
| First published | 2014-03-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Nathan Vander Wilt |
| Maintainers | natevw |
| Keywords | string, template, templating, mustache |

## Links

- npm: https://www.npmjs.com/package/flatstache
- Repository: https://github.com/natevw/flatstache.js
- Issues: https://github.com/natevw/flatstache.js/issues
- npm.io page: https://npm.io/package/flatstache

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-03-28

## README

[Mustache] is a simple, logic-less templating language. Flatstache supports an even simpler subset of template features, just escaped or unescaped mustachios from a flat dictionary:

	Flatstache.to_html("{{test}}{{{ing}}}, {{what}}{{not}}", {test:'Win', ing:'ning', what: "I dunno the \"<3\" contest maybe?"});

Outputs a string suitable for use as an element's innerHTML: "Winning, I dunno the &amp;quot;&amp;lt;3&amp;quot; contest maybe?"

So it's kind of like mustache.js loses to printf without the 'f' or...something. But it's small! (<1kB before minification)

Also: you can now `npm install --save flatstache` for all your `require('flatstache').to_html(…)` needs.

[Mustache]: http://mustache.github.com/

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