# handlebars-inline-file

> Dead simple handlebars helper for inlining text files

Latest version **1.0.0** (published 2018-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install handlebars-inline-file
pnpm add handlebars-inline-file
yarn add handlebars-inline-file
bun add handlebars-inline-file
```

## 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 | 2018-01-04 |
| First published | 2018-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zenwarr |
| Maintainers | zenwarr |
| Keywords | handlebars, file, inline, simple |

## Links

- npm: https://www.npmjs.com/package/handlebars-inline-file
- Repository: https://github.com/zenwarr/handlebars-inline-file
- Homepage: https://github.com/zenwarr/handlebars-inline-file#readme
- Issues: https://github.com/zenwarr/handlebars-inline-file/issues
- npm.io page: https://npm.io/package/handlebars-inline-file

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-01-04

## README

# What is it?

A dead simple handlebars helper that takes file name and inserts its contents (utf-8 encoding is used to read files).
Unlike `handlebars-inline`, it does not optimize SVG files.

# Usage

```
npm i handlebars-inline-file
```

In your handlebars template, write:

```handlebars
{{inline "filename.txt"}}
```

You can inline SVG or any other file containing tags, but do not forget that handlebars escapes HTML by default, so you need triple slashes:

```handlebars
{{{inline "filename.svg"}}}
```

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