
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
ember-faker
Advanced tools
Ember addon wrapper for Faker.js.
ember install ember-faker
ember install:addon ember-faker
Import the faker module with import faker from 'faker'. Then you can use it as a default
value for dummy data:
import faker from 'faker';
export default DS.Model.extend({
firstName: DS.attr('string', {
defaultValue: function() {
return faker.name.firstName();
}
})
});
Or manually set attributes for tests or prototypes:
import faker from 'faker';
// ...
user.set('firstName', faker.name.firstName());
user.set('lastName', faker.name.lastName());
By default faker is included into your build for non-production environments. To include it in production, add this to your config:
// ember-cli-build.js
let app = new EmberApp(defaults, {
'ember-faker': {
enabled: EmberApp.env === 'production'
}
});
git clone this repositorynpm installbower installember serverember testember test --serverember buildFor more information on using ember-cli, visit http://www.ember-cli.com/.
MIT
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Crafted with <3 by John Otander (@4lpine).
FAQs
Include fake data in your app for testing or prototyping.
The npm package ember-faker receives a total of 2,568 weekly downloads. As such, ember-faker popularity was classified as popular.
We found that ember-faker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.