{"id":13805510,"url":"https://github.com/emberjs/ember-optional-features","last_synced_at":"2025-04-12T11:49:06.320Z","repository":{"id":28590119,"uuid":"117017500","full_name":"emberjs/ember-optional-features","owner":"emberjs","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-26T18:16:22.000Z","size":1316,"stargazers_count":40,"open_issues_count":25,"forks_count":15,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-10-29T15:44:46.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/emberjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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},"funding":{"github":"emberjs","open_collective":"emberjs"}},"created_at":"2018-01-10T22:15:39.000Z","updated_at":"2024-10-26T18:15:38.000Z","dependencies_parsed_at":"2024-04-12T09:22:58.307Z","dependency_job_id":"9488736c-2125-4df2-9d30-4ae7641ffb5b","html_url":"https://github.com/emberjs/ember-optional-features","commit_stats":{"total_commits":233,"total_committers":22,"mean_commits":"10.590909090909092","dds":0.5751072961373391,"last_synced_commit":"7c8331ff9cfedde8434a16294ad31571795e180a"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fember-optional-features","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fember-optional-features/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fember-optional-features/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fember-optional-features/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emberjs","download_url":"https://codeload.github.com/emberjs/ember-optional-features/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248498701,"owners_count":21114177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08-04T01:01:01.851Z","updated_at":"2025-04-12T11:49:06.282Z","avatar_url":"https://github.com/emberjs.png","language":"JavaScript","readme":"# @ember/optional-features\n\nThis addon allows you to easily enable/disable optional features in ember-source. To clarify what we mean by optional, these are features that will be opt-in/opt-out and optional for the foreseeable future, not features that will be enabled by default. It is intended for use with apps *only* not addons.\n\n## Installation\n\n```bash\nember install @ember/optional-features\n```\n\n## Usage\n\n### From command-line\n\n#### List available features\n\nFeatures will only be available in versions of ember-source that included them. To list all available features run:\n\n```bash\nember feature:list\n```\n\n#### Enable/disable features\n\nTo enable a feature, run:\n\n```bash\nember feature:enable some-feature\n```\n\nSimilarly, if you want to disable a feature, you can run:\n\n```bash\nember feature:disable some-feature\n```\n\n### At build-time (from an addon)\n\nThis addon exposes a build-time method called `isFeatureEnabled`, which can be called from an addon's `index.js`, e.g.:\n\n```javascript\nincluded() {\n  let optionalFeatues = this.addons.find(a =\u003e a.name === '@ember/optional-features');\n  if (optionalFeatures.isFeatureEnabled('jquery-integration') {\n    // ...\n  }\n}\n```\n\nIt also exposes a method called `isFeatureExplicitlySet`, which can be used to check whether or not the user has explictly set the value of the option instead of using the default.\n\n### At run-time (from an app or addon)\n\nWIP -- there does not yet exist a public API for accessing the state of optional features at runtime. [This](https://github.com/pzuraq/ember-compatibility-helpers/issues/27) issue is tracking it.\n","funding_links":["https://github.com/sponsors/emberjs","https://opencollective.com/emberjs"],"categories":["Packages"],"sub_categories":["Command-line apps"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femberjs%2Fember-optional-features","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femberjs%2Fember-optional-features","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femberjs%2Fember-optional-features/lists"}