{"_id":"@alesniak/graphql-codegen-faker","_rev":"14-b0d45c319a10180b657d32aa70db8e37","name":"@alesniak/graphql-codegen-faker","dist-tags":{"latest":"1.5.0"},"versions":{"1.0.1":{"name":"@alesniak/graphql-codegen-faker","version":"1.0.1","license":"MIT","_id":"@alesniak/graphql-codegen-faker@1.0.1","maintainers":[{"name":"alesniak","email":"adam@alesniak.com"}],"dist":{"shasum":"99c4b4969f7b6b54f136ec27a8fbef29d861b6fc","tarball":"https://registry.npmjs.org/@alesniak/graphql-codegen-faker/-/graphql-codegen-faker-1.0.1.tgz","fileCount":64,"integrity":"sha512-+iukyndKZsTx4tgIVEs74BxmF0x9bfuwUnM+hWAMVPPDCBkF27XcqKXPmL2Crqhw3KISgMajRTA9jzml/UXjJg==","signatures":[{"sig":"MEQCIH4muT/wBppvQSpuWwu3LhOS1gdkzDupJdp+9N8nuXqwAiBwr4GPUWoBMmQZn6wrtn/Vou1QI91Nfvt4AyeljG2EJA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":700426},"main":"dist/cjs/index.js","module":"dist/esm/index.js","engines":{"node":">=16"},"exports":{".":{"import":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"default":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/typings/index.d.cts","default":"./dist/cjs/index.js"}},"./package.json":"./package.json"},"scripts":{"lint":"eslint **/*.ts","test":"jest --no-watchman","build":"bob build","release":"release-please --repo-url=https://github.com/adamlesniak/graphql-codegen-faker","prettier":"prettier -w {src,tests}/*{spec.ts,.ts}"},"typings":"dist/typings/index.d.ts","_npmUser":{"name":"alesniak","email":"adam@alesniak.com"},"repository":{"url":"https://github.com/adamlesniak/graphql-codegen-faker.git","type":"git","directory":"packages/plugins/typescript/typescript"},"typescript":{"definition":"dist/typings/index.d.ts"},"description":"GraphQL Code Generator plugin for generating mocks based on faker package.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"dependencies":{"tslib":"~2.8.1","auto-bind":"~4.0.0","@graphql-codegen/visitor-plugin-common":"5.8.0"},"publishConfig":{"access":"public","directory":"dist"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","eslint":"^9.28.0","globals":"^16.2.0","graphql":"^16.11.0","ts-jest":"^29.3.4","prettier":"^3.5.3","jest-diff":"^29.7.0","@eslint/js":"^9.28.0","typescript":"^5.8.3","@types/jest":"^29.5.14","lint-staged":"^16.1.0","ts-node-dev":"^2.0.0","release-please":"^17.0.0","@faker-js/faker":"^9.8.0","bob-the-bundler":"^7.0.1","prettier-eslint":"^16.4.2","typescript-eslint":"^8.33.1","eslint-plugin-jest":"^28.12.0","eslint-config-landr":"1.5.0","eslint-plugin-import":"^2.31.0","prettier-config-landr":"^1.0.1","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.4.1","@graphql-codegen/testing":"^3.0.4","@typescript-eslint/parser":"^8.33.0","@graphql-codegen/schema-ast":"^4.1.0","@auto-it/conventional-commits":"^11.3.0","@graphql-codegen/plugin-helpers":"^5.1.0","@typescript-eslint/eslint-plugin":"^8.33.0"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-faker_1.0.1_1749038348676_0.5984534615157997","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@alesniak/graphql-codegen-faker","version":"1.2.0","license":"MIT","_id":"@alesniak/graphql-codegen-faker@1.2.0","maintainers":[{"name":"alesniak","email":"adam@alesniak.com"}],"dist":{"shasum":"e9feaf2a53cced5db39d90854f6cca502c9d59b7","tarball":"https://registry.npmjs.org/@alesniak/graphql-codegen-faker/-/graphql-codegen-faker-1.2.0.tgz","fileCount":65,"integrity":"sha512-9t1PxNJlOcbN4WD5h2b8PCZrKErQ1+XibMCJTnJ0NIwaObzPe41nZ0PmoEesEhkdLosHwrD11xMatoZmWFTQ3w==","signatures":[{"sig":"MEUCIGTDxu8xA2tqn3ra2V8CetfI26cSzI6xMQhMwnuXHPoxAiEA2GTZIUWlU55KipmIwuQS5Gt3a5m0EA16Q6QkUa/6Uj0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":705540},"main":"dist/cjs/index.js","module":"dist/esm/index.js","engines":{"node":">=16"},"exports":{".":{"import":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"default":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/typings/index.d.cts","default":"./dist/cjs/index.js"}},"./package.json":"./package.json"},"scripts":{"lint":"eslint **/*.ts","test":"jest --no-watchman","build":"bob build","prepare":"husky","release":"release-please --repo-url=https://github.com/adamlesniak/graphql-codegen-faker","prettier":"prettier -w **/*.ts"},"typings":"dist/typings/index.d.ts","_npmUser":{"name":"alesniak","email":"adam@alesniak.com"},"repository":{"url":"https://github.com/adamlesniak/graphql-codegen-faker.git","type":"git","directory":"packages/plugins/typescript/typescript"},"typescript":{"definition":"dist/typings/index.d.ts"},"description":"GraphQL Code Generator plugin for generating mocks based on faker package.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"dependencies":{"tslib":"~2.8.1","auto-bind":"~4.0.0","@graphql-codegen/visitor-plugin-common":"5.8.0"},"publishConfig":{"access":"public","directory":"dist"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","eslint":"^9.28.0","globals":"^16.2.0","graphql":"^16.11.0","ts-jest":"^29.3.4","prettier":"^3.5.3","jest-diff":"^29.7.0","@eslint/js":"^9.28.0","typescript":"^5.8.3","@types/jest":"^29.5.14","lint-staged":"^16.1.0","ts-node-dev":"^2.0.0","release-please":"^17.0.0","@faker-js/faker":"^9.8.0","bob-the-bundler":"^7.0.1","prettier-eslint":"^16.4.2","typescript-eslint":"^8.33.1","eslint-plugin-jest":"^28.12.0","eslint-config-landr":"1.5.0","eslint-plugin-import":"^2.31.0","prettier-config-landr":"^1.0.1","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.4.1","@graphql-codegen/testing":"^3.0.4","@typescript-eslint/parser":"^8.33.0","@graphql-codegen/schema-ast":"^4.1.0","@auto-it/conventional-commits":"^11.3.0","@graphql-codegen/plugin-helpers":"^5.1.0","@typescript-eslint/eslint-plugin":"^8.33.0"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-faker_1.2.0_1749043206146_0.590139512956988","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@alesniak/graphql-codegen-faker","version":"1.3.0","license":"MIT","_id":"@alesniak/graphql-codegen-faker@1.3.0","maintainers":[{"name":"alesniak","email":"adam@alesniak.com"}],"dist":{"shasum":"68e4cf9a43f572f4d61a338e7b9f354f770c6eda","tarball":"https://registry.npmjs.org/@alesniak/graphql-codegen-faker/-/graphql-codegen-faker-1.3.0.tgz","fileCount":65,"integrity":"sha512-LtxXnWKDubY/f6pnLuS/rmVluETMGlRsDK2I5aAstsaI0IRog6Rt6CekyMxB7RolOAYyOyFNscSbWcM+yvqOxA==","signatures":[{"sig":"MEYCIQC8+4E/joz44fsUXL3SlM7EtQ3wmP3mLpCvlm6X9veF9AIhALon6hUacoEIrEs1JyOv0PRhi0VW/45faHJ0T+xBKox2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":708740},"main":"dist/cjs/index.js","module":"dist/esm/index.js","engines":{"node":">=16"},"exports":{".":{"import":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"default":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/typings/index.d.cts","default":"./dist/cjs/index.js"}},"./package.json":"./package.json"},"scripts":{"lint":"eslint **/*.ts","test":"jest --no-watchman","build":"bob build","prepare":"husky","release":"release-please --repo-url=https://github.com/adamlesniak/graphql-codegen-faker","prettier":"prettier -w **/*.ts"},"typings":"dist/typings/index.d.ts","_npmUser":{"name":"alesniak","email":"adam@alesniak.com"},"repository":{"url":"https://github.com/adamlesniak/graphql-codegen-faker.git","type":"git","directory":"packages/plugins/typescript/typescript"},"typescript":{"definition":"dist/typings/index.d.ts"},"description":"GraphQL Code Generator plugin for generating mocks based on faker package.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"dependencies":{"tslib":"~2.8.1","auto-bind":"~4.0.0","@graphql-codegen/visitor-plugin-common":"5.8.0"},"publishConfig":{"access":"public","directory":"dist"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","eslint":"^9.28.0","globals":"^16.2.0","graphql":"^16.11.0","ts-jest":"^29.3.4","prettier":"^3.5.3","jest-diff":"^29.7.0","@eslint/js":"^9.28.0","typescript":"^5.8.3","@types/jest":"^29.5.14","lint-staged":"^16.1.0","ts-node-dev":"^2.0.0","release-please":"^17.0.0","@faker-js/faker":"^9.8.0","bob-the-bundler":"^7.0.1","prettier-eslint":"^16.4.2","typescript-eslint":"^8.33.1","eslint-plugin-jest":"^28.12.0","eslint-config-landr":"1.5.0","eslint-plugin-import":"^2.31.0","prettier-config-landr":"^1.0.1","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.4.1","@graphql-codegen/testing":"^3.0.4","@typescript-eslint/parser":"^8.33.0","@graphql-codegen/schema-ast":"^4.1.0","@auto-it/conventional-commits":"^11.3.0","@graphql-codegen/plugin-helpers":"^5.1.0","@typescript-eslint/eslint-plugin":"^8.33.0"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-faker_1.3.0_1749157352479_0.589503434145761","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@alesniak/graphql-codegen-faker","version":"1.4.0","license":"MIT","_id":"@alesniak/graphql-codegen-faker@1.4.0","maintainers":[{"name":"alesniak","email":"adam@alesniak.com"}],"dist":{"shasum":"58129e0bb82154d682691df90db26a242be9f675","tarball":"https://registry.npmjs.org/@alesniak/graphql-codegen-faker/-/graphql-codegen-faker-1.4.0.tgz","fileCount":65,"integrity":"sha512-ruH2yMixoflmXE9riW067dFbmKYsHC38ZxDz/mreA/SDwOCfl4cb1zpdRfEPI9SOqLj7LczLhee9ajdwps0Sdw==","signatures":[{"sig":"MEYCIQCo+AGC3GbS58OUMEvX/PdM3LaO3GdP5m6w8AhXABdIAQIhAMrCJ+zl+UWqBOD/UxJVbAM4+61QjukLht9qAVKtrQNY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":709104},"main":"dist/cjs/index.js","module":"dist/esm/index.js","engines":{"node":">=16"},"exports":{".":{"import":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"default":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/typings/index.d.cts","default":"./dist/cjs/index.js"}},"./package.json":"./package.json"},"scripts":{"lint":"eslint **/*.ts","test":"jest --no-watchman","build":"bob build","prepare":"husky","release":"release-please --repo-url=https://github.com/adamlesniak/graphql-codegen-faker","prettier":"prettier -w **/*.ts"},"typings":"dist/typings/index.d.ts","_npmUser":{"name":"alesniak","email":"adam@alesniak.com"},"repository":{"url":"https://github.com/adamlesniak/graphql-codegen-faker.git","type":"git","directory":"packages/plugins/typescript/typescript"},"typescript":{"definition":"dist/typings/index.d.ts"},"description":"GraphQL Code Generator plugin for generating mocks based on faker package.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"dependencies":{"tslib":"~2.8.1","auto-bind":"~4.0.0","@graphql-codegen/visitor-plugin-common":"5.8.0"},"publishConfig":{"access":"public","directory":"dist"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","eslint":"^9.28.0","globals":"^16.2.0","graphql":"^16.11.0","ts-jest":"^29.3.4","prettier":"^3.5.3","jest-diff":"^29.7.0","@eslint/js":"^9.28.0","typescript":"^5.8.3","@types/jest":"^29.5.14","lint-staged":"^16.1.0","ts-node-dev":"^2.0.0","release-please":"^17.0.0","@faker-js/faker":"^9.8.0","bob-the-bundler":"^7.0.1","prettier-eslint":"^16.4.2","typescript-eslint":"^8.33.1","eslint-plugin-jest":"^28.12.0","eslint-config-landr":"1.5.0","eslint-plugin-import":"^2.31.0","prettier-config-landr":"^1.0.1","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.4.1","@graphql-codegen/testing":"^3.0.4","@typescript-eslint/parser":"^8.33.0","@graphql-codegen/schema-ast":"^4.1.0","@auto-it/conventional-commits":"^11.3.0","@graphql-codegen/plugin-helpers":"^5.1.0","@typescript-eslint/eslint-plugin":"^8.33.0"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-faker_1.4.0_1749199284718_0.5638192961613475","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"@alesniak/graphql-codegen-faker","version":"1.5.0","description":"GraphQL Code Generator plugin for generating mocks based on faker package.","repository":{"type":"git","url":"https://github.com/adamlesniak/graphql-codegen-faker.git","directory":"packages/plugins/typescript/typescript"},"license":"MIT","scripts":{"build":"bob build","lint":"eslint **/*.ts","test":"jest --no-watchman","prettier":"prettier -w **/*.ts","release":"release-please --repo-url=https://github.com/adamlesniak/graphql-codegen-faker","prepare":"husky"},"dependencies":{"@graphql-codegen/visitor-plugin-common":"5.8.0","auto-bind":"~4.0.0","tslib":"~2.8.1"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"require":{"types":"./dist/typings/index.d.cts","default":"./dist/cjs/index.js"},"import":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"default":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"}},"./package.json":"./package.json"},"typings":"dist/typings/index.d.ts","typescript":{"definition":"dist/typings/index.d.ts"},"publishConfig":{"directory":"dist","access":"public"},"engines":{"node":">=16"},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"devDependencies":{"@auto-it/conventional-commits":"^11.3.0","@eslint/js":"^9.28.0","@faker-js/faker":"^9.8.0","@graphql-codegen/plugin-helpers":"^5.1.0","@graphql-codegen/schema-ast":"^4.1.0","@graphql-codegen/testing":"^3.0.4","@types/jest":"^29.5.14","@typescript-eslint/eslint-plugin":"^8.33.0","@typescript-eslint/parser":"^8.33.0","bob-the-bundler":"^7.0.1","eslint":"^9.28.0","eslint-config-landr":"1.5.0","eslint-config-prettier":"^10.1.5","eslint-plugin-import":"^2.31.0","eslint-plugin-jest":"^28.12.0","eslint-plugin-prettier":"^5.4.1","globals":"^16.2.0","graphql":"^16.11.0","husky":"^9.1.7","jest":"^29.7.0","jest-diff":"^29.7.0","lint-staged":"^16.1.0","prettier":"^3.5.3","prettier-config-landr":"^1.0.1","prettier-eslint":"^16.4.2","release-please":"^17.0.0","ts-jest":"^29.3.4","ts-node-dev":"^2.0.0","typescript":"^5.8.3","typescript-eslint":"^8.33.1"},"_id":"@alesniak/graphql-codegen-faker@1.5.0","dist":{"shasum":"7a0d6e62e79f6197cc42f202cb1d1b99b4cca87e","integrity":"sha512-rOrnEAf3/KyGoNUznwAF7kF2FcCvHrkvkZTHgHeQLuR/Z7TCyK8IkAdc6fMJUkUlMJlNkRFtZ2r+NUZiCxXCLA==","tarball":"https://registry.npmjs.org/@alesniak/graphql-codegen-faker/-/graphql-codegen-faker-1.5.0.tgz","fileCount":70,"unpackedSize":712551,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDyX8iCcqJ8cRYf7PmJWL/BURaNe73srJzbqsfv8ZlxhAIhANHzNTeh9iZI4AccVPn2EPPzKjGVHEDHxCXC2AIFeu1T"}]},"_npmUser":{"name":"alesniak","email":"adam@alesniak.com","actor":{"name":"alesniak","email":"adam@alesniak.com","type":"user"}},"directories":{},"maintainers":[{"name":"alesniak","email":"adam@alesniak.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/graphql-codegen-faker_1.5.0_1751727702903_0.499274490211427"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-04T11:59:08.581Z","modified":"2025-07-05T15:01:43.332Z","0.1.0":"2025-05-01T11:52:36.305Z","1.1.0":"2025-06-02T15:44:51.973Z","0.2.0":"2025-06-03T07:53:15.189Z","1.0.0":"2025-06-04T09:39:52.445Z","1.0.1":"2025-06-04T11:59:08.873Z","1.2.0":"2025-06-04T13:20:06.364Z","1.3.0":"2025-06-05T21:02:32.759Z","1.4.0":"2025-06-06T08:41:24.928Z","1.5.0":"2025-07-05T15:01:43.134Z"},"license":"MIT","repository":{"type":"git","url":"https://github.com/adamlesniak/graphql-codegen-faker.git","directory":"packages/plugins/typescript/typescript"},"description":"GraphQL Code Generator plugin for generating mocks based on faker package.","maintainers":[{"name":"alesniak","email":"adam@alesniak.com"}],"readme":"# graphql-codegen-faker\n\nGraphQL Code Generator Plugin to define mock data factory.\n\n## Getting started\n\n```sh\nnpm run prepare\n```\n\n## Installation\n\n```sh\nnpm install -D @alesniak/graphql-codegen-faker @graphql-codegen/cli @graphql-codegen/typescript\nnpm install -S graphql\n```\n\n## Requirements\n\n- `graphql` >= 16.0.0\n- `typescript` >= 5.0.0\n  - `--moduleResolution Bundler`, `--moduleResolution Node16` or `--moduleResolution NodeNext` is required\n\n## Usage\n\n```ts\n// codegen.ts\nimport { CodegenConfig } from '@graphql-codegen/cli';\n\nconst config: CodegenConfig = {\n  schema: './schema.graphql',\n  generates: {\n    './__generated__/mocks.ts': {\n      plugins: ['@alesniak/graphql-codegen-faker'],\n      config: {\n        locality: 'EN',\n        mockPrefix: 'mock',\n      },\n    },\n  },\n};\n\nexport default config;\n```\n\n```graphql\ntype User @fakerList(items: 20, name: user) {\n  id: String @faker(module: string, method: uuid)\n  name: String @faker(module: person, method: firstName)\n  email: String @faker(module: internet, method: email)\n  password: String @faker(module: internet, method: password)\n  createdAt: String @faker(module: date, method: past)\n  updatedAt: String @faker(module: date, method: past)\n}\n```\n\n```sh\nnpx graphql-codegen\n```\n\n```ts\nimport { mockUserList } from '../__generated__/mocks';\n\nconst user = mockUserList[0];\n```\n\n## License\n\nThis library is licensed under the MIT license.\n","readmeFilename":"README.md"}