# rendy

> simplest template engine

Latest version **5.0.2** (published 2026-03-29) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 60/100 (C)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.2 |
| Published | 2026-03-29 |
| First published | 2014-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 0 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | coderaiser |
| Maintainers | coderaiser |
| Keywords | template, engine |

## Links

- npm: https://www.npmjs.com/package/rendy
- Repository: https://github.com/coderaiser/rendy
- Issues: https://github.com/coderaiser/rendy/issues
- npm.io page: https://npm.io/package/rendy

## Recent versions

- 5.0.2 (latest) — 2026-03-29
- 5.0.1 — 2026-03-22
- 5.0.0 — 2026-02-18
- 4.1.3 — 2023-10-12
- 4.1.2 — 2023-10-11
- 4.1.1 — 2023-10-11
- 4.1.0 — 2023-10-11
- 4.0.1 — 2023-10-11
- 4.0.0 — 2023-10-11
- 3.1.1 — 2020-09-11
- 3.1.0 — 2020-09-11
- 3.0.1 — 2019-09-06
- 3.0.0 — 2019-09-06
- 2.0.0 — 2018-04-26
- 1.1.1 — 2018-04-25
- … 7 more at https://npm.io/package/rendy/versions

## README

# Rendy [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage][CoverageIMGURL]][CoverageURL]

[NPM_INFO_IMG]: https://nodei.co/npm/rendy.png?downloads&&stars&&downloadRank "npm install rendy"
[NPMIMGURL]: https://img.shields.io/npm/v/rendy.svg?style=flat
[BuildStatusURL]: https://github.com/coderaiser/rendy/actions/workflows/nodejs.yml "Build Status"
[BuildStatusIMGURL]: https://github.com/coderaiser/rendy/actions/workflows/nodejs.yml/badge.svg
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
[NPMURL]: https://npmjs.org/package/rendy "npm"
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
[CoverageURL]: https://coveralls.io/github/coderaiser/rendy?branch=master
[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/rendy/badge.svg?branch=master&service=github

Simple template engine compatible with [handlebars](http://handlebarsjs.com "Handlebars") and [mustache](https://mustache.github.io "Mustache").

## Install

![NPM\_INFO][NPM_INFO_IMG]

`npm i rendy`

## How to use?

```js
import {rendy} from 'rendy';
```

### API

#### rendy(template: string, value: Values, modifiers?: Modifiers)

`Values` is:

```ts
type Values = {
    [key: string]: unknown;
};
type Modifiers = {
    [key: string]: (value: unknown) => string;
};
```

```js
rendy('hello {{ value }}', {
    value: 'world',
});

// returns
'hello world';

const values = {
    names: ['a', 'b', 'c'],
};

const modifiers = {
    implode: (a) => a.join(', '),
};

rendy('hello {{ names | implode }}', values, modifiers);
// returns
'hello a, b, c';
```

## License

MIT

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