# vue-fake-data

> a vuejs plugin to generate fake data

Latest version **1.0.0** (published 2020-05-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-fake-data
pnpm add vue-fake-data
yarn add vue-fake-data
bun add vue-fake-data
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-05-23 |
| First published | 2020-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 1 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | mouhcine narhmouche |
| Maintainers | mohsinenar |
| Keywords | vuejs, faker, fake data, fake image,  placeholder, image placeholder |

## Links

- npm: https://www.npmjs.com/package/vue-fake-data
- npm.io page: https://npm.io/package/vue-fake-data

## Dependencies (1)

- [faker](https://npm.io/package/faker.md) ^4.1.0

## Alternatives

- [pagerjs](https://npm.io/package/pagerjs.md) — 60 weekly downloads
- [whistle.savefor-mock](https://npm.io/package/whistle.savefor-mock.md) — 4 weekly downloads
- [@bcc-code/db_masker](https://npm.io/package/@bcc-code/db_masker.md) — 0 weekly downloads
- [mocksimple](https://npm.io/package/mocksimple.md) — 0 weekly downloads
- [@react-shimeji/character-red-medic-by-tesspy-665b23](https://npm.io/package/@react-shimeji/character-red-medic-by-tesspy-665b23.md) — 0 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-05-23

## README

# vue-fake-data

> a vuejs plugin to generate realistic fake data

## installation 

``` bash
npm i vue-fake-data --save
```
## How to use 
```bash
import vueFakeData from 'vueFakeData'

Vue.use(vueFakeData,{locale: 'eng'})
```
## Global Object 
``` bash
### available Global Object 
Vue.$DataFaker
```
#### Example
```bash
<template>
  <div  id="app">
    <p>Hey,my address is {{fakeStreetAddress}}, {{fakeCity}}  :)</p>
  </div>
</template>

<script>
export default {
  name: 'app',
  computed:{
	fakeCity:function(){
      return this.$DataFaker.address.city(); 
	},
	fakeStreetAddress:function(){
      return this.$DataFaker.address.streetAddress(); 
    },
  }
}
</script>
```

## directives 

- **dataFaker**:  help you to generate Fake data such as names and emails ...
	 
 - **imageFaker**:	  you can use it with `<img>` tag to change the `src` attr to a random imag url 
  
  #### Example:
``` bash
<template>
  <div  id="app">
    <p > Hi! my name is : <span v-dataFaker:name="firstName"></span> </p>
    <p > and this is my best picture ever: </p> <img height="100px" width="100px" v-imageFaker="avatar" />
  </div>
</template>

<script>
export default {
  name: 'app',
}
</script>
```
## Components 
soon...

---
_Source: https://npm.io/package/vue-fake-data · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
