{"id":15537510,"url":"https://github.com/nullvoxpopuli/ember-functions-as-modifiers-polyfill","last_synced_at":"2026-03-10T07:32:18.112Z","repository":{"id":43737314,"uuid":"445931120","full_name":"NullVoxPopuli/ember-functions-as-modifiers-polyfill","owner":"NullVoxPopuli","description":"Polyfill for https://github.com/emberjs/rfcs/pull/757","archived":false,"fork":false,"pushed_at":"2026-03-09T00:49:02.000Z","size":2084,"stargazers_count":6,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-09T02:22:28.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullVoxPopuli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-08T21:23:05.000Z","updated_at":"2026-03-08T21:35:23.000Z","dependencies_parsed_at":"2023-09-26T17:28:51.174Z","dependency_job_id":"cc192b85-a717-48b2-a548-08f37caaca31","html_url":"https://github.com/NullVoxPopuli/ember-functions-as-modifiers-polyfill","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/NullVoxPopuli/ember-functions-as-modifiers-polyfill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-functions-as-modifiers-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-functions-as-modifiers-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-functions-as-modifiers-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-functions-as-modifiers-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullVoxPopuli","download_url":"https://codeload.github.com/NullVoxPopuli/ember-functions-as-modifiers-polyfill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-functions-as-modifiers-polyfill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T11:57:49.162Z","updated_at":"2026-03-10T07:32:18.091Z","avatar_url":"https://github.com/NullVoxPopuli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-functions-as-modifiers-polyfill\n==============================================================================\n\n\n[![npm version](https://badge.fury.io/js/ember-functions-as-modifiers-polyfill.svg)](https://badge.fury.io/js/ember-functions-as-modifiers-polyfill)\n[![CI](https://github.com/NullVoxPopuli/ember-functions-as-modifiers-polyfill/actions/workflows/ci.yml/badge.svg?branch=main\u0026event=push)](https://github.com/NullVoxPopuli/ember-functions-as-modifiers-polyfill/actions/workflows/ci.yml)\n\n\nUse plain functions as modifiers.\nPolyfill for [RFC: 757 | Default Modifier Manager](https://github.com/emberjs/rfcs/pull/757)\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.25 or above\n* Ember CLI v3.25 or above\n* Node.js v14 or above\n* ember-auto-import v1 or above\n* embroider-optimized\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-functions-as-modifiers-polyfill\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\nDefine a function (doesn't have to be in a component)\n\n\n```js\nimport Component  from '@glimmer/component';\n\nexport default class MyComponent extends Component {\n  myModifier = (element, x) =\u003e {\n    let handler = () =\u003e console.log(x); // -\u003e 3\n\n    element.addEventListener('click', handler);\n\n    return () =\u003e element.removeEventListener('click', handler);\n  }\n}\n```\n```hbs\n\u003cdiv {{this.myModifier 3}}\u003e\n```\n\nNamed arguments will all be grouped together in the last argument of the helper:\n\n```js\nimport Component  from '@glimmer/component';\n\nexport default class MyComponent extends Component {\n  doStuff = (element, x, options) =\u003e {\n    let handler = () =\u003e console.log(x, options.optionA, options.optionB); // -\u003e 3 2 3\n\n    element.addEventListener('click', handler);\n\n    return () =\u003e element.removeEventListener('click', handler);\n  };\n}\n```\n```hbs\n\u003cdiv {{this.doStuff 3 optionA=2 optionB=3}}\u003e\n```\n\n\nContributing\n------------------------------------------------------------------------------\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Fember-functions-as-modifiers-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullvoxpopuli%2Fember-functions-as-modifiers-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Fember-functions-as-modifiers-polyfill/lists"}