# lodash.template

> The Lodash method `_.template` exported as a module.

Latest version **4.18.1** (published 2026-04-01) · MIT license · 0 weekly downloads

> **Deprecated.** See documentation for alternatives

> **Better alternative:** See documentation for alternatives (https://github.com/AikidoSec/module-replacements/blob/main/docs/lodash-underscore)

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 4.18.1 |
| Published | 2026-04-01 |
| First published | 2013-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/lodash.template) |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 49.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 61272 |
| Author | John-David Dalton |
| Maintainers | mathias, jdalton |
| Keywords | lodash-modularized, template |

## Links

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

## Dependencies (2)

- [lodash._reinterpolate](https://npm.io/package/lodash._reinterpolate.md) ^3.0.0
- [lodash.templatesettings](https://npm.io/package/lodash.templatesettings.md) ^4.0.0

## 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

- 4.18.1 (latest) — 2026-04-01
- 4.18.0 — 2026-03-31
- 4.5.0 — 2019-07-10
- 4.4.0 — 2016-08-13
- 4.3.0 — 2016-07-25
- 4.2.5 — 2016-05-12
- 4.2.4 — 2016-04-03
- 4.2.3 — 2016-03-30
- 4.2.2 — 2016-03-02
- 4.2.1 — 2016-02-24
- 4.2.0 — 2016-02-16
- 4.1.1 — 2016-02-16
- 4.1.0 — 2016-02-08
- 4.0.2 — 2016-02-03
- 4.0.1 — 2016-01-26
- … 21 more at https://npm.io/package/lodash.template/versions

## README

# lodash.template v4.18.1

The [Lodash](https://lodash.com/) method `_.template` exported as a [Node.js](https://nodejs.org/) module.

## Installation

Using npm:
```bash
$ {sudo -H} npm i -g npm
$ npm i --save lodash.template
```

In Node.js:
```js
var template = require('lodash.template');
```

See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/4.18.1-npm-packages/lodash.template) for more details.

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