{"id":16352325,"url":"https://github.com/bugthesystem/autopoco.js","last_synced_at":"2025-11-20T01:30:16.578Z","repository":{"id":148582388,"uuid":"48992906","full_name":"bugthesystem/autopoco.js","owner":"bugthesystem","description":"Simple test data creator","archived":false,"fork":false,"pushed_at":"2016-10-08T21:56:24.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T13:06:22.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugthesystem.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-01-04T11:26:58.000Z","updated_at":"2016-07-22T20:39:11.000Z","dependencies_parsed_at":"2023-05-20T14:45:24.099Z","dependency_job_id":null,"html_url":"https://github.com/bugthesystem/autopoco.js","commit_stats":null,"previous_names":["bugthesystem/autopoco.js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fautopoco.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fautopoco.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fautopoco.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fautopoco.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugthesystem","download_url":"https://codeload.github.com/bugthesystem/autopoco.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239619573,"owners_count":19669447,"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":[],"created_at":"2024-10-11T01:25:47.440Z","updated_at":"2025-11-20T01:30:16.548Z","avatar_url":"https://github.com/bugthesystem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autopoco.js\n\n[![Build Status](https://travis-ci.org/ziyasal/autopoco.js.svg?branch=master)](https://travis-ci.org/ziyasal/autopoco.js) [![Coverage Status](https://coveralls.io/repos/github/ziyasal/autopoco.js/badge.svg?branch=master)](https://coveralls.io/github/ziyasal/autopoco.js?branch=master)\n\n**Install**\n\n```sh\nnpm install autopoco.js\n```\n\n**ES6**\n```js\nimport autopoco from 'autopoco.js'\n\nlet fixture = autopoco()\n\nfixture.define('UserModel', {\n    name:     fixture.fakes.String,\n    lastName: fixture.fakes.String,\n    age:      fixture.fakes.Number,\n    email:    fixture.fakes.Email,\n    phone:    fixture.fakes.Phone\n})\n\n\nlet userList = fixture.for('UserModel').createMany() //creates 3 item by default\n\nfor (let user of userList) {\n    console.log(JSON.stringify(user))\n}\n```\n\n**CommonJS**\n```js\nconst autopoco = require('autopoco.js')\nconst fixture = autopoco.default()\n\nfixture.define('UserModel', {\n    name:     fixture.fakes.String,\n    lastName: fixture.fakes.String,\n    age:      fixture.fakes.Number,\n    email:    fixture.fakes.Email,\n    phone:    fixture.fakes.Phone\n})\n\n\nvar userList = fixture.for('UserModel').createMany() //creates 3 item by default\n\nfor (var i=0; i\u003cuserList.length; i++) {\n    console.log(JSON.stringify(userList[i]))\n}\n\n```\n\n**Browser**\n```js\nvar fixture = autopoco()\n\nfixture.define('UserModel', {\n    name:     fixture.fakes.String,\n    lastName: fixture.fakes.String,\n    age:      fixture.fakes.Number,\n    email:    fixture.fakes.Email,\n    phone:    fixture.fakes.Phone\n})\n\n\nvar userList = fixture.for('UserModel').createMany() //creates 3 item by default\n\nfor (var i=0; i\u003cuserList.length; i++) {\n    console.log(JSON.stringify(userList[i]))\n}\n```\n**Result (shows 1 item, omitted for brevity)**\n```js\n{\n    \"name\": \"2b463ab5-f790-4da6-986b-24779a5a8b5d\",\n    \"lastName\": \"7c261e1f-9d68-4b0f-9040-679c0755197e\",\n    \"age\": 26,\n    \"email\": \"Kobe.Weimann69@hotmail.com\",\n    \"phone\": \"766-244-0145\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugthesystem%2Fautopoco.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugthesystem%2Fautopoco.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugthesystem%2Fautopoco.js/lists"}