{"action":"opened","number":326,"pull_request":{"url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/326","id":57147053,"html_url":"https://github.com/SBoudrias/Inquirer.js/pull/326","diff_url":"https://github.com/SBoudrias/Inquirer.js/pull/326.diff","patch_url":"https://github.com/SBoudrias/Inquirer.js/pull/326.patch","issue_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/326","number":326,"state":"open","locked":false,"title":"add sanity check for screen width","user":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"body":"string-width can return a 0 width screen, which causes inquirer to blow up:\r\n\r\nhttps://gist.github.com/bcoe/6bc16d0dbe5190b8d302\r\n\r\nI'm submitted a [pull request](https://github.com/knownasilya/cli-width/pull/6) to `cli-width`, but I felt it might be worthwhile to defend against this in inquirer as well.","created_at":"2016-01-25T23:21:35Z","updated_at":"2016-01-25T23:21:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/326/commits","review_comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/326/comments","review_comment_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/326/comments","statuses_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/statuses/264be114e69d457b30a5b31d48d3a29468a6aaed","head":{"label":"bcoe:defend-width","ref":"defend-width","sha":"264be114e69d457b30a5b31d48d3a29468a6aaed","user":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"repo":{"id":24270116,"name":"Inquirer.js","full_name":"bcoe/Inquirer.js","owner":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bcoe/Inquirer.js","description":"A collection of common interactive command line user interfaces.","fork":true,"url":"https://api.github.com/repos/bcoe/Inquirer.js","forks_url":"https://api.github.com/repos/bcoe/Inquirer.js/forks","keys_url":"https://api.github.com/repos/bcoe/Inquirer.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcoe/Inquirer.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcoe/Inquirer.js/teams","hooks_url":"https://api.github.com/repos/bcoe/Inquirer.js/hooks","issue_events_url":"https://api.github.com/repos/bcoe/Inquirer.js/issues/events{/number}","events_url":"https://api.github.com/repos/bcoe/Inquirer.js/events","assignees_url":"https://api.github.com/repos/bcoe/Inquirer.js/assignees{/user}","branches_url":"https://api.github.com/repos/bcoe/Inquirer.js/branches{/branch}","tags_url":"https://api.github.com/repos/bcoe/Inquirer.js/tags","blobs_url":"https://api.github.com/repos/bcoe/Inquirer.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcoe/Inquirer.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcoe/Inquirer.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcoe/Inquirer.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcoe/Inquirer.js/statuses/{sha}","languages_url":"https://api.github.com/repos/bcoe/Inquirer.js/languages","stargazers_url":"https://api.github.com/repos/bcoe/Inquirer.js/stargazers","contributors_url":"https://api.github.com/repos/bcoe/Inquirer.js/contributors","subscribers_url":"https://api.github.com/repos/bcoe/Inquirer.js/subscribers","subscription_url":"https://api.github.com/repos/bcoe/Inquirer.js/subscription","commits_url":"https://api.github.com/repos/bcoe/Inquirer.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcoe/Inquirer.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcoe/Inquirer.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcoe/Inquirer.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcoe/Inquirer.js/contents/{+path}","compare_url":"https://api.github.com/repos/bcoe/Inquirer.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcoe/Inquirer.js/merges","archive_url":"https://api.github.com/repos/bcoe/Inquirer.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcoe/Inquirer.js/downloads","issues_url":"https://api.github.com/repos/bcoe/Inquirer.js/issues{/number}","pulls_url":"https://api.github.com/repos/bcoe/Inquirer.js/pulls{/number}","milestones_url":"https://api.github.com/repos/bcoe/Inquirer.js/milestones{/number}","notifications_url":"https://api.github.com/repos/bcoe/Inquirer.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcoe/Inquirer.js/labels{/name}","releases_url":"https://api.github.com/repos/bcoe/Inquirer.js/releases{/id}","deployments_url":"https://api.github.com/repos/bcoe/Inquirer.js/deployments","created_at":"2014-09-20T17:59:02Z","updated_at":"2016-01-25T23:07:29Z","pushed_at":"2016-01-25T23:18:50Z","git_url":"git://github.com/bcoe/Inquirer.js.git","ssh_url":"git@github.com:bcoe/Inquirer.js.git","clone_url":"https://github.com/bcoe/Inquirer.js.git","svn_url":"https://github.com/bcoe/Inquirer.js","homepage":null,"size":532,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"SBoudrias:master","ref":"master","sha":"9027108e1b91069c2e0adef5ddedf42189e53443","user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"repo":{"id":10114077,"name":"Inquirer.js","full_name":"SBoudrias/Inquirer.js","owner":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SBoudrias/Inquirer.js","description":"A collection of common interactive command line user interfaces.","fork":false,"url":"https://api.github.com/repos/SBoudrias/Inquirer.js","forks_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/forks","keys_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/teams","hooks_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/hooks","issue_events_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/events{/number}","events_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/events","assignees_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/assignees{/user}","branches_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/branches{/branch}","tags_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/tags","blobs_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/statuses/{sha}","languages_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/languages","stargazers_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/stargazers","contributors_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/contributors","subscribers_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/subscribers","subscription_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/subscription","commits_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/contents/{+path}","compare_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/merges","archive_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/downloads","issues_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues{/number}","pulls_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls{/number}","milestones_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/milestones{/number}","notifications_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/labels{/name}","releases_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/releases{/id}","deployments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/deployments","created_at":"2013-05-17T01:41:36Z","updated_at":"2016-01-25T11:57:51Z","pushed_at":"2016-01-25T23:21:36Z","git_url":"git://github.com/SBoudrias/Inquirer.js.git","ssh_url":"git@github.com:SBoudrias/Inquirer.js.git","clone_url":"https://github.com/SBoudrias/Inquirer.js.git","svn_url":"https://github.com/SBoudrias/Inquirer.js","homepage":null,"size":843,"stargazers_count":2280,"watchers_count":2280,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":162,"mirror_url":null,"open_issues_count":49,"forks":162,"open_issues":49,"watchers":2280,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/326"},"html":{"href":"https://github.com/SBoudrias/Inquirer.js/pull/326"},"issue":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/326"},"comments":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/326/comments"},"review_comments":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/326/comments"},"review_comment":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/326/commits"},"statuses":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/statuses/264be114e69d457b30a5b31d48d3a29468a6aaed"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":2,"changed_files":1}}