# ember-functions-as-helper-polyfill

> Implementation of RFC 756, Default Helper Manager

Latest version **2.1.3** (published 2025-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-functions-as-helper-polyfill
pnpm add ember-functions-as-helper-polyfill
yarn add ember-functions-as-helper-polyfill
bun add ember-functions-as-helper-polyfill
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities; has provenance.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2025-05-06 |
| First published | 2021-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 14.0.0 |
| Dependencies | 3 |
| Unpacked size | 29.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 12 |
| Author | NullVoxPopuli |
| Maintainers | nullvoxpopuli |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-functions-as-helper-polyfill
- Repository: https://github.com/ember-polyfills/ember-functions-as-helper-polyfill
- Homepage: https://github.com/ember-polyfills/ember-functions-as-helper-polyfill#readme
- Issues: https://github.com/ember-polyfills/ember-functions-as-helper-polyfill/issues
- npm.io page: https://npm.io/package/ember-functions-as-helper-polyfill

## Dependencies (3)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^7.26.11
- [ember-cli-typescript](https://npm.io/package/ember-cli-typescript.md) ^5.0.0
- [ember-cli-version-checker](https://npm.io/package/ember-cli-version-checker.md) ^5.1.2

## Recent versions

- 2.1.3 (latest) — 2025-05-06
- 2.1.2 — 2023-08-03
- 2.1.1 — 2022-05-01
- 2.1.0 — 2022-04-14
- 2.0.1 — 2022-02-04
- 2.0.0 — 2022-01-30
- 1.0.15 — 2022-01-26
- 1.0.14 — 2022-01-19
- 1.0.13 — 2022-01-14
- 1.0.12 — 2022-01-13
- 1.0.11 — 2022-01-08
- 1.0.10 — 2021-12-22
- 1.0.9 — 2021-12-21
- 1.0.8 — 2021-12-17
- 1.0.7 — 2021-12-16
- … 7 more at https://npm.io/package/ember-functions-as-helper-polyfill/versions

## README

# ember-functions-as-helper-polyfill

[![npm version](https://badge.fury.io/js/ember-functions-as-helper-polyfill.svg)](https://badge.fury.io/js/ember-functions-as-helper-polyfill)
[![CI](https://github.com/NullVoxPopuli/ember-functions-as-helper-polyfill/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/NullVoxPopuli/ember-functions-as-helper-polyfill/actions/workflows/ci.yml)


Use plain functions as helpers.
Polyfill for [RFC: 756 | Default Helper Manager](https://github.com/emberjs/rfcs/pull/756).
On Ember.js versions with native support for the feature (4.5+), this addon is inert.

## Compatibility

* Ember.js v3.25 or above
* Ember CLI v3.25 or above
* ember-auto-import v1 or above


## Installation

```
ember install ember-functions-as-helper-polyfill
```

## Usage

Define a function (doesn't have to be in a component)

```js
import Component  from '@glimmer/component';

export default class MyComponent extends Component {
  myHelper = x => x * 2;
}
```
```hbs
{{this.myHelper 3}}
^ prints 6
```

Named arguments will all be grouped together in the last argument of the helper:

```js
import Component  from '@glimmer/component';

export default class MyComponent extends Component {
  doStuff = (x, options) => {
    console.log(x, options.optionA, options.optionB);
  };
}
```
```hbs
{{this.doStuff 3 optionA=2 optionB=3}}
```


## Contributing

See the [Contributing](CONTRIBUTING.md) guide for details.


## License

This project is licensed under the [MIT License](LICENSE.md).

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