Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-faker

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-faker - npm Package Compare versions

Comparing version 0.0.4 to 1.0.0

5

package.json
{
"name": "ember-faker",
"description": "Include fake data in your app for testing or prototyping.",
"version": "0.0.4",
"version": "1.0.0",
"directories": {

@@ -41,5 +41,6 @@ "doc": "doc",

"ember-addon": {
"configPath": "tests/dummy/config"
"configPath": "tests/dummy/config",
"defaultBlueprint": "ember-faker"
},
"dependencies": {}
}

22

README.md

@@ -5,3 +5,3 @@ # Ember Faker

This is an Ember addon wrapper for [Faker.js](https://github.com/marak/Faker.js/).
Ember addon wrapper for [Faker.js](https://github.com/marak/Faker.js/).

@@ -11,4 +11,3 @@ ## Installation

```javascript
npm install --save-dev ember-faker
ember g ember-faker
ember install:addon ember-faker
```

@@ -18,3 +17,4 @@

Import the faker module
Import the faker module with `import faker from 'faker'`. Then you can use it as a default
value for dummy data:

@@ -24,2 +24,16 @@ ```javascript

export default DS.Model.extend({
firstName: DS.attr('string', {
defaultValue: function() {
return faker.name.firstName();
}
})
});
```
Or manually set attributes for tests or prototypes:
```javascript
import faker from 'faker';
// ...

@@ -26,0 +40,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc