# vue-faker

> Vue plugin that wraps faker.js

Latest version **3.0.0** (published 2020-11-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-faker
pnpm add vue-faker
yarn add vue-faker
bun add vue-faker
```

## 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 | 3.0.0 |
| Published | 2020-11-09 |
| First published | 2016-02-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Brock Reece |
| Maintainers | brockreece |
| Keywords | Vue, plugin, faker.js, dev |

## Links

- npm: https://www.npmjs.com/package/vue-faker
- Repository: https://github.com/BrockReece/vue-faker
- Homepage: https://github.com/BrockReece/vue-faker#readme
- Issues: https://github.com/BrockReece/vue-faker/issues
- npm.io page: https://npm.io/package/vue-faker

## Dependencies (2)

- [faker](https://npm.io/package/faker.md) ^5.0.0
- [underscore](https://npm.io/package/underscore.md) ^1.8.3

## 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
- [@govuk-pay/run-amock](https://npm.io/package/@govuk-pay/run-amock.md) — 0 weekly downloads
- [@knockout-mdc/material-menu](https://npm.io/package/@knockout-mdc/material-menu.md) — 0 weekly downloads
- [@knockout-mdc/material-menu-button](https://npm.io/package/@knockout-mdc/material-menu-button.md) — 0 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2020-11-09
- 2.0.0 — 2020-08-11
- 1.0.1 — 2016-02-16
- 1.0.0 — 2016-02-08

## README

# vue-faker
Vue plugin that wraps the node fake data generator, [faker] (https://github.com/marak/Faker.js/).

## Installation

You can install this plugin through NPM

``` cmd 
npm install vue-faker
```

And then register the plugin with Vue.

``` js
Vue.use(require('vue-faker'));
```

## Usage
You now access the faker library using the following command

``` js
Vue.faker().name.firstName()
```

Or from within a Vue component

``` js
this.$faker().name.firstName()
```

``` js
...
data() {
    return {
      name: this.$faker().name.findName(),
      email: this.$faker().internet.email(),
      company: this.$faker().company.companyName(),
    }
},
...
```

### Locale
You can set the loacle globally by passing it through as an option to the plugin

``` js
Vue.use(require('vue-faker'), {locale: 'en_GB'});
```

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