# underscore.template

> Extracted template from Underscore, use '_.template' without full underscore source.

Latest version **0.1.7** (published 2016-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install underscore.template
pnpm add underscore.template
yarn add underscore.template
bun add underscore.template
```

## 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.1.7 |
| Published | 2016-12-22 |
| First published | 2015-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Leon Shi |
| Maintainers | superraytin |
| Keywords | template, templating, underscore.template, underscore-template, underscore template, underscore, micro templating |

## Links

- npm: https://www.npmjs.com/package/underscore.template
- Repository: https://github.com/superRaytin/underscore.template
- Issues: https://github.com/superRaytin/underscore.template/issues
- npm.io page: https://npm.io/package/underscore.template

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.1.7 (latest) — 2016-12-22
- 0.1.6 — 2016-09-05
- 0.1.5 — 2016-01-15
- 0.1.4 — 2016-01-15
- 0.1.3 — 2016-01-10
- 0.1.2 — 2015-12-24
- 0.1.1 — 2015-12-24
- 0.1.0 — 2015-12-24

## README

# underscore.template
> Extracted template from [Underscore](http://underscorejs.org/), use `_.template` without full underscore source.

[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][npm-url]
[![Bower version][bower-image]][bower-url]
[![Build Status](https://travis-ci.org/superRaytin/underscore.template.svg?branch=master)](https://travis-ci.org/superRaytin/underscore.template)

[![underscore.template](https://nodei.co/npm/underscore.template.png)](https://npmjs.org/package/underscore.template)

[npm-url]: https://npmjs.org/package/underscore.template
[downloads-image]: http://img.shields.io/npm/dm/underscore.template.svg
[npm-image]: http://img.shields.io/npm/v/underscore.template.svg
[bower-url]:http://badge.fury.io/bo/underscore.template
[bower-image]: https://badge.fury.io/bo/underscore.template.svg

# Installation

### NPM

```
npm install underscore.template
```

### Bower

```
bower install underscore.template
```

# Usage

### Node.js

```js
var UnderscoreTemplate = require('underscore.template');
var template = UnderscoreTemplate("<b><%- value %></b>");

template({value: 'hello world'});
// <b>hello world</b>

template({value: '<script>'});
// <b>&lt;script&gt;</b>
```

### Browser

Simply download the latest minified version from the `dist/` folder. API is available in a global object called `UnderscoreTemplate`.

```html
<script src="./dist/underscore.template.js"></script>
```

```js
var template = UnderscoreTemplate("<b><%- value %></b>");

template({value: 'hello world'});
// <b>hello world</b>
```

# Testing

```
npm test
```

# License

MIT, see the [LICENSE](/LICENSE) file for detail.

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