{"id":18895882,"url":"https://github.com/echobind/ember-required-properties","last_synced_at":"2025-09-19T17:43:14.512Z","repository":{"id":57224227,"uuid":"74631752","full_name":"echobind/ember-required-properties","owner":"echobind","description":"Enforce required properties on components or other objects via a simple mixin.","archived":false,"fork":false,"pushed_at":"2018-05-02T20:56:21.000Z","size":87,"stargazers_count":6,"open_issues_count":5,"forks_count":1,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-10T18:57:45.768Z","etag":null,"topics":["addon","ember"],"latest_commit_sha":null,"homepage":"","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/echobind.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}},"created_at":"2016-11-24T02:40:29.000Z","updated_at":"2020-02-10T20:46:14.000Z","dependencies_parsed_at":"2022-08-30T02:41:27.319Z","dependency_job_id":null,"html_url":"https://github.com/echobind/ember-required-properties","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echobind%2Fember-required-properties","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echobind%2Fember-required-properties/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echobind%2Fember-required-properties/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echobind%2Fember-required-properties/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echobind","download_url":"https://codeload.github.com/echobind/ember-required-properties/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248989527,"owners_count":21194608,"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":["addon","ember"],"created_at":"2024-11-08T08:30:59.057Z","updated_at":"2025-09-19T17:43:09.446Z","avatar_url":"https://github.com/echobind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-required-properties\n\n[![CircleCI](https://circleci.com/gh/echobind/ember-required-properties.svg?style=svg)](https://circleci.com/gh/echobind/ember-required-properties)\n[![npm version](https://badge.fury.io/js/ember-required-properties.svg)](http://badge.fury.io/js/ember-required-properties)\n[![Code Climate](https://codeclimate.com/github/echobind/ember-required-properties/badges/gpa.svg)](https://codeclimate.com/github/echobind/ember-required-properties)\n[![Dependency Status](https://david-dm.org/echobind/ember-required-properties.svg)](https://david-dm.org/echobind/ember-required-properties)\n[![Ember Observer Score](http://emberobserver.com/badges/ember-required-properties.svg)](http://emberobserver.com/addons/ember-required-properties)\n\n## Features\n\nThis addon enables the following pattern:\n\n```js\n// some-component\nexport default Component.extend(RequiredProperties, {\n  requiredProperties: ['thing', 'another', 'on-select-thing']  \n});\n```\n\n```hbs\n{{some-component}}\n```\n\n```sh\nERROR: You must provide `thing`, `another`, and `on-select-thing` to {{some-component}}.\n```\n\nLike `ember-prop-types`, this addon helps ensure required properties are passed to components. This addon is intended to be a much smaller building block. It only verifies required properties are present, not that they are of the correct type.\n\n## Installation\n\n```\nember install ember-required-properties\n```\n\n## Usage\n\nImport the mixin anywhere you want to require properties:\n\n```js\nimport RequiredProperties from 'ember-required-properties/mixins/required-properties';\n\nexport Component.extend(RequiredProperties, {\n  requiredProperties: ['one', 'two']\n});\n```\n\nNow if you fail to pass all of the required properties you will get an error.\n\nNOTE: since we use `Ember.assert` to throw errors, production will silently fail.\n\n\n## About Echobind\n\n![Echobind](https://echobind.s3.amazonaws.com/images/echobind-logo-black.svg)\n\nEmber Required Properties is maintained and funded by Echobind.\u003cbr\u003e\n[@echobind][twitter]\n\nWe love open source! See [our other projects][community] or [hire us][hire] to help bring your idea to life.\n\n## Legal\n[Echobind](https://echobind.com) LLC (c) 2016 \u003cbr\u003e\n[@echobind](https://twitter.com/echobind) \u003cbr\u003e\n[Licensed under the MIT license](http://www.opensource.org/licenses/mit-license.php)\n\n[twitter]: https://twitter.com/echobind\n[community]: https://github.com/echobind\n[hire]: https://echobind.com?utm_source=github-hire\n[MIT]: http://www.opensource.org/licenses/mit-license.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechobind%2Fember-required-properties","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fechobind%2Fember-required-properties","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechobind%2Fember-required-properties/lists"}