# handlebars-helpers-sprintf-js

> Wrap sprintf-js functions to Handlebars helpers

Latest version **1.0.0** (published 2019-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install handlebars-helpers-sprintf-js
pnpm add handlebars-helpers-sprintf-js
yarn add handlebars-helpers-sprintf-js
bun add handlebars-helpers-sprintf-js
```

## 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 | 2019-07-06 |
| First published | 2019-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tomasz Jakub Rup |
| Maintainers | tomi77 |
| Keywords | handlebars, helpers, sprintf, vsprintf |

## Links

- npm: https://www.npmjs.com/package/handlebars-helpers-sprintf-js
- Repository: https://github.com/tomi77/handlebars-helpers-sprintf-js
- Issues: https://github.com/tomi77/handlebars-helpers-sprintf-js/issues
- npm.io page: https://npm.io/package/handlebars-helpers-sprintf-js

## Dependencies (1)

- [sprintf-js](https://npm.io/package/sprintf-js.md) ^1.1.1

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

- 1.0.0 (latest) — 2019-07-06

## README

# handlebars-helpers-sprintf-js
Wrap sprintf-js functions to Handlebars helpers

## Installation

~~~sh
npm install handlebars-helpers-sprintf-js
~~~

## Usage

### Typical

Register helpers:

~~~js
const helper = require('handlebars-helpers-sprintf-js');

helper.register();
~~~

Use:

~~~js
const Handlebars = require('handlebars');

const template = Handlebars.compile('{{sprintf format param}}');

template({format: '%s', param: 'a'})
~~~

### ![handlebars-loader](https://www.npmjs.com/package/handlebars-loader)

In `webpack.config.js`:

~~~js
…
const helper = require('handlebars-helpers-sprintf-js');
…
                        precompileOptions: {
                            knownHelpers: helper.knownHelpers,
                        },
                        helperDirs: [
                            'handlebars-helpers-sprintf-js'
                        ],
…
~~~

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