{"action":"closed","number":334,"pull_request":{"url":"https://api.github.com/repos/Marak/faker.js/pulls/334","id":56355180,"html_url":"https://github.com/Marak/faker.js/pull/334","diff_url":"https://github.com/Marak/faker.js/pull/334.diff","patch_url":"https://github.com/Marak/faker.js/pull/334.patch","issue_url":"https://api.github.com/repos/Marak/faker.js/issues/334","number":334,"state":"closed","locked":false,"title":"[Locale: en_GB] Added basic support for generating UK postcodes","user":{"login":"terrawheat","id":2854383,"avatar_url":"https://avatars.githubusercontent.com/u/2854383?v=3","gravatar_id":"","url":"https://api.github.com/users/terrawheat","html_url":"https://github.com/terrawheat","followers_url":"https://api.github.com/users/terrawheat/followers","following_url":"https://api.github.com/users/terrawheat/following{/other_user}","gists_url":"https://api.github.com/users/terrawheat/gists{/gist_id}","starred_url":"https://api.github.com/users/terrawheat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrawheat/subscriptions","organizations_url":"https://api.github.com/users/terrawheat/orgs","repos_url":"https://api.github.com/users/terrawheat/repos","events_url":"https://api.github.com/users/terrawheat/events{/privacy}","received_events_url":"https://api.github.com/users/terrawheat/received_events","type":"User","site_admin":false},"body":"Although this doesn't begin to cover the vast array of UK postcodes, it at least provides a vaguely familiar shape of data compared to defaulting to US style ZIP codes. It will occasionally generate outbound codes that don't exist (XY24 9AA would be a possible output for example).\r\n\r\nI'm not sure if the Faker DSL for specifying data shape has enough variety to support generating UK postcodes beyond specifying every possibly combination by hand, but I am open to feedback on this subject to make the generation more realistic.\r\n\r\n\r\nFor more info on the craziness of UK postcodes:\r\nhttps://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom\r\n\r\n","created_at":"2016-01-18T15:20:40Z","updated_at":"2016-02-07T21:46:17Z","closed_at":"2016-02-07T21:46:17Z","merged_at":"2016-02-07T21:46:17Z","merge_commit_sha":"82e7897821a1644e43380283983efe22129de366","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Marak/faker.js/pulls/334/commits","review_comments_url":"https://api.github.com/repos/Marak/faker.js/pulls/334/comments","review_comment_url":"https://api.github.com/repos/Marak/faker.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Marak/faker.js/issues/334/comments","statuses_url":"https://api.github.com/repos/Marak/faker.js/statuses/4e3cb55cbbc923fc3b915fd696f5de9a3d85f1f8","head":{"label":"LiberisLabs:master","ref":"master","sha":"4e3cb55cbbc923fc3b915fd696f5de9a3d85f1f8","user":{"login":"LiberisLabs","id":13767057,"avatar_url":"https://avatars.githubusercontent.com/u/13767057?v=3","gravatar_id":"","url":"https://api.github.com/users/LiberisLabs","html_url":"https://github.com/LiberisLabs","followers_url":"https://api.github.com/users/LiberisLabs/followers","following_url":"https://api.github.com/users/LiberisLabs/following{/other_user}","gists_url":"https://api.github.com/users/LiberisLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/LiberisLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiberisLabs/subscriptions","organizations_url":"https://api.github.com/users/LiberisLabs/orgs","repos_url":"https://api.github.com/users/LiberisLabs/repos","events_url":"https://api.github.com/users/LiberisLabs/events{/privacy}","received_events_url":"https://api.github.com/users/LiberisLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":49882084,"name":"faker.js","full_name":"LiberisLabs/faker.js","owner":{"login":"LiberisLabs","id":13767057,"avatar_url":"https://avatars.githubusercontent.com/u/13767057?v=3","gravatar_id":"","url":"https://api.github.com/users/LiberisLabs","html_url":"https://github.com/LiberisLabs","followers_url":"https://api.github.com/users/LiberisLabs/followers","following_url":"https://api.github.com/users/LiberisLabs/following{/other_user}","gists_url":"https://api.github.com/users/LiberisLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/LiberisLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiberisLabs/subscriptions","organizations_url":"https://api.github.com/users/LiberisLabs/orgs","repos_url":"https://api.github.com/users/LiberisLabs/repos","events_url":"https://api.github.com/users/LiberisLabs/events{/privacy}","received_events_url":"https://api.github.com/users/LiberisLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LiberisLabs/faker.js","description":"generate massive amounts of fake data in Node.js and the browser","fork":true,"url":"https://api.github.com/repos/LiberisLabs/faker.js","forks_url":"https://api.github.com/repos/LiberisLabs/faker.js/forks","keys_url":"https://api.github.com/repos/LiberisLabs/faker.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiberisLabs/faker.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiberisLabs/faker.js/teams","hooks_url":"https://api.github.com/repos/LiberisLabs/faker.js/hooks","issue_events_url":"https://api.github.com/repos/LiberisLabs/faker.js/issues/events{/number}","events_url":"https://api.github.com/repos/LiberisLabs/faker.js/events","assignees_url":"https://api.github.com/repos/LiberisLabs/faker.js/assignees{/user}","branches_url":"https://api.github.com/repos/LiberisLabs/faker.js/branches{/branch}","tags_url":"https://api.github.com/repos/LiberisLabs/faker.js/tags","blobs_url":"https://api.github.com/repos/LiberisLabs/faker.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiberisLabs/faker.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiberisLabs/faker.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiberisLabs/faker.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiberisLabs/faker.js/statuses/{sha}","languages_url":"https://api.github.com/repos/LiberisLabs/faker.js/languages","stargazers_url":"https://api.github.com/repos/LiberisLabs/faker.js/stargazers","contributors_url":"https://api.github.com/repos/LiberisLabs/faker.js/contributors","subscribers_url":"https://api.github.com/repos/LiberisLabs/faker.js/subscribers","subscription_url":"https://api.github.com/repos/LiberisLabs/faker.js/subscription","commits_url":"https://api.github.com/repos/LiberisLabs/faker.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiberisLabs/faker.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiberisLabs/faker.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiberisLabs/faker.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiberisLabs/faker.js/contents/{+path}","compare_url":"https://api.github.com/repos/LiberisLabs/faker.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiberisLabs/faker.js/merges","archive_url":"https://api.github.com/repos/LiberisLabs/faker.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiberisLabs/faker.js/downloads","issues_url":"https://api.github.com/repos/LiberisLabs/faker.js/issues{/number}","pulls_url":"https://api.github.com/repos/LiberisLabs/faker.js/pulls{/number}","milestones_url":"https://api.github.com/repos/LiberisLabs/faker.js/milestones{/number}","notifications_url":"https://api.github.com/repos/LiberisLabs/faker.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiberisLabs/faker.js/labels{/name}","releases_url":"https://api.github.com/repos/LiberisLabs/faker.js/releases{/id}","deployments_url":"https://api.github.com/repos/LiberisLabs/faker.js/deployments","created_at":"2016-01-18T14:30:34Z","updated_at":"2016-01-18T15:00:11Z","pushed_at":"2016-01-18T15:16:29Z","git_url":"git://github.com/LiberisLabs/faker.js.git","ssh_url":"git@github.com:LiberisLabs/faker.js.git","clone_url":"https://github.com/LiberisLabs/faker.js.git","svn_url":"https://github.com/LiberisLabs/faker.js","homepage":"","size":5421,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Marak:master","ref":"master","sha":"322a2ad47757514bd381819f44e8d3bc857b55e1","user":{"login":"Marak","id":70011,"avatar_url":"https://avatars.githubusercontent.com/u/70011?v=3","gravatar_id":"","url":"https://api.github.com/users/Marak","html_url":"https://github.com/Marak","followers_url":"https://api.github.com/users/Marak/followers","following_url":"https://api.github.com/users/Marak/following{/other_user}","gists_url":"https://api.github.com/users/Marak/gists{/gist_id}","starred_url":"https://api.github.com/users/Marak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marak/subscriptions","organizations_url":"https://api.github.com/users/Marak/orgs","repos_url":"https://api.github.com/users/Marak/repos","events_url":"https://api.github.com/users/Marak/events{/privacy}","received_events_url":"https://api.github.com/users/Marak/received_events","type":"User","site_admin":false},"repo":{"id":667561,"name":"faker.js","full_name":"Marak/faker.js","owner":{"login":"Marak","id":70011,"avatar_url":"https://avatars.githubusercontent.com/u/70011?v=3","gravatar_id":"","url":"https://api.github.com/users/Marak","html_url":"https://github.com/Marak","followers_url":"https://api.github.com/users/Marak/followers","following_url":"https://api.github.com/users/Marak/following{/other_user}","gists_url":"https://api.github.com/users/Marak/gists{/gist_id}","starred_url":"https://api.github.com/users/Marak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marak/subscriptions","organizations_url":"https://api.github.com/users/Marak/orgs","repos_url":"https://api.github.com/users/Marak/repos","events_url":"https://api.github.com/users/Marak/events{/privacy}","received_events_url":"https://api.github.com/users/Marak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Marak/faker.js","description":"generate massive amounts of fake data in Node.js and the browser","fork":false,"url":"https://api.github.com/repos/Marak/faker.js","forks_url":"https://api.github.com/repos/Marak/faker.js/forks","keys_url":"https://api.github.com/repos/Marak/faker.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Marak/faker.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Marak/faker.js/teams","hooks_url":"https://api.github.com/repos/Marak/faker.js/hooks","issue_events_url":"https://api.github.com/repos/Marak/faker.js/issues/events{/number}","events_url":"https://api.github.com/repos/Marak/faker.js/events","assignees_url":"https://api.github.com/repos/Marak/faker.js/assignees{/user}","branches_url":"https://api.github.com/repos/Marak/faker.js/branches{/branch}","tags_url":"https://api.github.com/repos/Marak/faker.js/tags","blobs_url":"https://api.github.com/repos/Marak/faker.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Marak/faker.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Marak/faker.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Marak/faker.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Marak/faker.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Marak/faker.js/languages","stargazers_url":"https://api.github.com/repos/Marak/faker.js/stargazers","contributors_url":"https://api.github.com/repos/Marak/faker.js/contributors","subscribers_url":"https://api.github.com/repos/Marak/faker.js/subscribers","subscription_url":"https://api.github.com/repos/Marak/faker.js/subscription","commits_url":"https://api.github.com/repos/Marak/faker.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Marak/faker.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Marak/faker.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Marak/faker.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Marak/faker.js/contents/{+path}","compare_url":"https://api.github.com/repos/Marak/faker.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Marak/faker.js/merges","archive_url":"https://api.github.com/repos/Marak/faker.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Marak/faker.js/downloads","issues_url":"https://api.github.com/repos/Marak/faker.js/issues{/number}","pulls_url":"https://api.github.com/repos/Marak/faker.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Marak/faker.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Marak/faker.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Marak/faker.js/labels{/name}","releases_url":"https://api.github.com/repos/Marak/faker.js/releases{/id}","deployments_url":"https://api.github.com/repos/Marak/faker.js/deployments","created_at":"2010-05-15T00:53:07Z","updated_at":"2016-02-07T17:33:10Z","pushed_at":"2016-02-07T21:46:17Z","git_url":"git://github.com/Marak/faker.js.git","ssh_url":"git@github.com:Marak/faker.js.git","clone_url":"https://github.com/Marak/faker.js.git","svn_url":"https://github.com/Marak/faker.js","homepage":"","size":6011,"stargazers_count":6567,"watchers_count":6567,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":517,"mirror_url":null,"open_issues_count":92,"forks":517,"open_issues":92,"watchers":6567,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Marak/faker.js/pulls/334"},"html":{"href":"https://github.com/Marak/faker.js/pull/334"},"issue":{"href":"https://api.github.com/repos/Marak/faker.js/issues/334"},"comments":{"href":"https://api.github.com/repos/Marak/faker.js/issues/334/comments"},"review_comments":{"href":"https://api.github.com/repos/Marak/faker.js/pulls/334/comments"},"review_comment":{"href":"https://api.github.com/repos/Marak/faker.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Marak/faker.js/pulls/334/commits"},"statuses":{"href":"https://api.github.com/repos/Marak/faker.js/statuses/4e3cb55cbbc923fc3b915fd696f5de9a3d85f1f8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Marak","id":70011,"avatar_url":"https://avatars.githubusercontent.com/u/70011?v=3","gravatar_id":"","url":"https://api.github.com/users/Marak","html_url":"https://github.com/Marak","followers_url":"https://api.github.com/users/Marak/followers","following_url":"https://api.github.com/users/Marak/following{/other_user}","gists_url":"https://api.github.com/users/Marak/gists{/gist_id}","starred_url":"https://api.github.com/users/Marak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marak/subscriptions","organizations_url":"https://api.github.com/users/Marak/orgs","repos_url":"https://api.github.com/users/Marak/repos","events_url":"https://api.github.com/users/Marak/events{/privacy}","received_events_url":"https://api.github.com/users/Marak/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":0,"changed_files":2}}