{"id":15503110,"url":"https://github.com/johno/ember-faker","last_synced_at":"2025-04-22T23:21:40.700Z","repository":{"id":23558598,"uuid":"26926049","full_name":"johno/ember-faker","owner":"johno","description":"Ember addon for including fake data in your app for testing or prototyping.","archived":false,"fork":false,"pushed_at":"2023-03-01T09:53:42.000Z","size":2737,"stargazers_count":35,"open_issues_count":26,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T17:31:18.835Z","etag":null,"topics":[],"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/johno.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2014-11-20T18:33:24.000Z","updated_at":"2023-07-22T17:25:31.000Z","dependencies_parsed_at":"2024-06-18T15:23:03.369Z","dependency_job_id":null,"html_url":"https://github.com/johno/ember-faker","commit_stats":null,"previous_names":["johnotander/ember-faker"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-faker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-faker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-faker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-faker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/ember-faker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250338503,"owners_count":21414198,"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-10-02T09:12:12.747Z","updated_at":"2025-04-22T23:21:40.684Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember Faker\n\n[![Build Status](https://travis-ci.org/johnotander/ember-faker.svg?branch=master)](https://travis-ci.org/johnotander/ember-faker)\n\nEmber addon wrapper for [Faker.js](https://github.com/marak/Faker.js/).\n\n## Installation for ember-cli \u003e= 0.2.3\n\n```bash\nember install ember-faker\n```\n\n#### ember-cli 0.1.5 - 0.2.2\n\n```bash\nember install:addon ember-faker\n```\n\n## Usage\n\nImport the faker module with `import faker from 'faker'`. Then you can use it as a default\nvalue for dummy data:\n\n```javascript\nimport faker from 'faker';\n\nexport default DS.Model.extend({\n  firstName: DS.attr('string', {\n    defaultValue: function() {\n      return faker.name.firstName();\n    }\n  })\n});\n```\n\nOr manually set attributes for tests or prototypes:\n\n```javascript\nimport faker from 'faker';\n\n// ...\n\nuser.set('firstName', faker.name.firstName());\nuser.set('lastName', faker.name.lastName());\n```\n\n## Environment options\n\nBy default faker is included into your build for non-production\nenvironments. To include it in production, add this\nto your config:\n\n```js\n// ember-cli-build.js\nlet app = new EmberApp(defaults, {\n  'ember-faker': {\n    enabled: EmberApp.env === 'production'\n  }\n});\n```\n\n## Development\n\n### Installation\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n### Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n### Running Tests\n\n* `ember test`\n* `ember test --server`\n\n### Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Thanks to the following\n\n* [Faker.js](https://github.com/marak/Faker.js/) for the fake data.\n* [ember-cli-pretender](https://github.com/rwjblue/ember-cli-pretender) for the shim example.\n\nCrafted with \u003c3 by [John Otander](http://johnotander.com) ([@4lpine](https://twitter.com/4lpine)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fember-faker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fember-faker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fember-faker/lists"}