{"id":21911974,"url":"https://github.com/skyatura/faker-nuxt","last_synced_at":"2025-04-16T04:40:14.775Z","repository":{"id":39584932,"uuid":"275910420","full_name":"SkyaTura/faker-nuxt","owner":"SkyaTura","description":"Faker wrapper for Nuxt.js","archived":false,"fork":false,"pushed_at":"2022-05-31T15:19:45.000Z","size":272,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-15T20:37:58.157Z","etag":null,"topics":["faker","faker-js","fakerjs","nuxt","nuxt-module"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SkyaTura.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-29T19:43:14.000Z","updated_at":"2022-07-28T08:54:02.000Z","dependencies_parsed_at":"2022-08-01T08:09:30.109Z","dependency_job_id":null,"html_url":"https://github.com/SkyaTura/faker-nuxt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyaTura%2Ffaker-nuxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyaTura%2Ffaker-nuxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyaTura%2Ffaker-nuxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyaTura%2Ffaker-nuxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SkyaTura","download_url":"https://codeload.github.com/SkyaTura/faker-nuxt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226963554,"owners_count":17710194,"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":["faker","faker-js","fakerjs","nuxt","nuxt-module"],"created_at":"2024-11-28T18:08:12.524Z","updated_at":"2024-11-28T18:08:13.132Z","avatar_url":"https://github.com/SkyaTura.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# faker-nuxt\n\n\u003e [Faker](https://www.npmjs.com/package/@faker-js/faker) wrapper for [Nuxt.js](https://nuxtjs.org/)\n\n[![version](https://img.shields.io/npm/v/faker-nuxt?label=faker-nuxt)](https://www.npmjs.com/package/faker-nuxt)\n[![npm (scoped)](https://img.shields.io/npm/v/@faker-js/faker?label=@faker-js/faker)](https://www.npmjs.com/package/@faker-js/faker)\n![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/faker-nuxt)\n![node-current (scoped)](https://img.shields.io/node/v/@faker-js/faker)\n![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/faker-nuxt)\n[![gitmoji](https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg)](https://gitmoji.dev)\n\n## Features\n\n- Inject `$faker` to the context everywhere.\n\n## Setup\n\n1. Add `faker-nuxt` dependency to your project\n\n```bash\nnpm install --save-dev faker-nuxt # or yarn add --dev faker-nuxt\n```\n\n2. Add `faker-nuxt` to the `buildModules` section of `nuxt.config.js`\n\n```js\nexport default {\n  buildModules: [\n    // Simple usage\n    'faker-nuxt',\n\n    // With options\n    ['faker-nuxt', { /* module options */ }]\n  ]\n}\n```\n\n:warning: If you are using Nuxt **\u003c v2.9** you have to install the module as a `dependency` (No `--dev` or `--save-dev` flags) and use `modules` section in `nuxt.config.js` instead of `buildModules`.\n\n### Using top level options\n\n```js\nexport default {\n  buildModules: [\n    'faker-nuxt'\n  ],\n  faker: {\n    /* module options */\n  }\n}\n```\n\n## Configuration\n\n### Set default locale\n\nYou can set a default locale via the `locale` option.\n\n```js\nexport default {\n  buildModules: [\n    'faker-nuxt'\n  ],\n  faker: {\n    locale: 'pt_BR',\n  }\n}\n```\n\n### Set default seed\n\nYou can set a default seed via the `seed` option.\n\n```js\nexport default {\n  buildModules: [\n    'faker-nuxt'\n  ],\n  faker: {\n    seed: 'Banana123',\n  }\n}\n```\n\n## Usage\n\n### Using inside templates\n\n```html\n\u003cdiv\u003e{{ $faker.lorem.word() }}\u003c/div\u003e\n\u003cdiv v-text=\"$faker.lorem.words()\"\u003e\u003c/div\u003e\n```\n\n### Using inside scripts\n\n```html\n\u003cscript\u003e\n  export default {\n    data() {\n      return {\n        name: this.$faker.fake('{{name.lastName}}, {{name.firstName}} {{name.suffix}}')\n      }\n    }\n  }\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyatura%2Ffaker-nuxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyatura%2Ffaker-nuxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyatura%2Ffaker-nuxt/lists"}