# stp

> 基于 es6 模板字符串的超简模板引擎

Latest version **0.0.4** (published 2017-04-12) · MIT license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2017-04-12 |
| First published | 2016-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Houfeng |
| Maintainers | houzhanfeng |
| Keywords | es6, tmpl, stp |

## Links

- npm: https://www.npmjs.com/package/stp
- npm.io page: https://npm.io/package/stp

## Recent versions

- 0.0.4 (latest) — 2017-04-12
- 0.0.3 — 2017-04-12
- 0.0.2 — 2016-03-25
- 0.0.1 — 2016-03-25

## README

```js
describe('stp', function() {

  it('compile', function() {
    var fn = stp("hello ${name}");
    assert.equal(typeof fn, 'function');
    var rs = fn({ name: "word" });
    assert.equal(rs, 'hello word');
  });

  it('parse', function() {
    var rs = stp("hello ${name}", { name: "word" });
    assert.equal(rs, 'hello word');
  });

});
```

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