{"action":"created","comment":{"url":"https://api.github.com/repos/QubitProducts/cookieman/pulls/comments/65972320","id":65972320,"diff_hunk":"@@ -114,10 +114,27 @@ function clearAll (name) {\n   return cleared\n }\n \n+/**\n+ * gets the value of a cookie, or returns null\n+ *\n+ * @public\n+ * @param {String} name The cookie name\n+ * @returns {Null} or {Boolean} Returns null if the cookie is not found or the cookie's value\n+ */\n+function cookieValue (name) {\n+  var val = null\n+  var cookies = getCookie(name)\n+  if (cookies && cookies[0] && cookies[0].value) {","path":"lib/cookieman.js","position":14,"original_position":14,"commit_id":"55cf381af562e0db8a2c986a5ddaa6c1104d3619","original_commit_id":"55cf381af562e0db8a2c986a5ddaa6c1104d3619","user":{"login":"samuelfullerthomas","id":10165959,"avatar_url":"https://avatars.githubusercontent.com/u/10165959?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelfullerthomas","html_url":"https://github.com/samuelfullerthomas","followers_url":"https://api.github.com/users/samuelfullerthomas/followers","following_url":"https://api.github.com/users/samuelfullerthomas/following{/other_user}","gists_url":"https://api.github.com/users/samuelfullerthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelfullerthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelfullerthomas/subscriptions","organizations_url":"https://api.github.com/users/samuelfullerthomas/orgs","repos_url":"https://api.github.com/users/samuelfullerthomas/repos","events_url":"https://api.github.com/users/samuelfullerthomas/events{/privacy}","received_events_url":"https://api.github.com/users/samuelfullerthomas/received_events","type":"User","site_admin":false},"body":"So:\r\n\r\n```\r\nif (cookies && cookies[0] && cookies[0].value || cookies[0].value === ''){\r\n//  stuff\r\n}\r\n``` ","created_at":"2016-06-06T21:26:17Z","updated_at":"2016-06-06T21:26:17Z","html_url":"https://github.com/QubitProducts/cookieman/pull/13#discussion_r65972320","pull_request_url":"https://api.github.com/repos/QubitProducts/cookieman/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/QubitProducts/cookieman/pulls/comments/65972320"},"html":{"href":"https://github.com/QubitProducts/cookieman/pull/13#discussion_r65972320"},"pull_request":{"href":"https://api.github.com/repos/QubitProducts/cookieman/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/QubitProducts/cookieman/pulls/13","id":72523395,"html_url":"https://github.com/QubitProducts/cookieman/pull/13","diff_url":"https://github.com/QubitProducts/cookieman/pull/13.diff","patch_url":"https://github.com/QubitProducts/cookieman/pull/13.patch","issue_url":"https://api.github.com/repos/QubitProducts/cookieman/issues/13","number":13,"state":"open","locked":false,"title":"Added in a 'val' method","user":{"login":"samuelfullerthomas","id":10165959,"avatar_url":"https://avatars.githubusercontent.com/u/10165959?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelfullerthomas","html_url":"https://github.com/samuelfullerthomas","followers_url":"https://api.github.com/users/samuelfullerthomas/followers","following_url":"https://api.github.com/users/samuelfullerthomas/following{/other_user}","gists_url":"https://api.github.com/users/samuelfullerthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelfullerthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelfullerthomas/subscriptions","organizations_url":"https://api.github.com/users/samuelfullerthomas/orgs","repos_url":"https://api.github.com/users/samuelfullerthomas/repos","events_url":"https://api.github.com/users/samuelfullerthomas/events{/privacy}","received_events_url":"https://api.github.com/users/samuelfullerthomas/received_events","type":"User","site_admin":false},"body":"Added in a 'val' method, to allow quick access to cookie values without having to use ```cm.get```. Returns either the cookie's value or ```null```.","created_at":"2016-06-03T15:15:00Z","updated_at":"2016-06-06T21:26:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"753ba7910d8e37cf8579a9d72cb1f4f4e28d7094","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/QubitProducts/cookieman/pulls/13/commits","review_comments_url":"https://api.github.com/repos/QubitProducts/cookieman/pulls/13/comments","review_comment_url":"https://api.github.com/repos/QubitProducts/cookieman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/QubitProducts/cookieman/issues/13/comments","statuses_url":"https://api.github.com/repos/QubitProducts/cookieman/statuses/55cf381af562e0db8a2c986a5ddaa6c1104d3619","head":{"label":"samuelfullerthomas:master","ref":"master","sha":"55cf381af562e0db8a2c986a5ddaa6c1104d3619","user":{"login":"samuelfullerthomas","id":10165959,"avatar_url":"https://avatars.githubusercontent.com/u/10165959?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelfullerthomas","html_url":"https://github.com/samuelfullerthomas","followers_url":"https://api.github.com/users/samuelfullerthomas/followers","following_url":"https://api.github.com/users/samuelfullerthomas/following{/other_user}","gists_url":"https://api.github.com/users/samuelfullerthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelfullerthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelfullerthomas/subscriptions","organizations_url":"https://api.github.com/users/samuelfullerthomas/orgs","repos_url":"https://api.github.com/users/samuelfullerthomas/repos","events_url":"https://api.github.com/users/samuelfullerthomas/events{/privacy}","received_events_url":"https://api.github.com/users/samuelfullerthomas/received_events","type":"User","site_admin":false},"repo":{"id":60353386,"name":"cookieman","full_name":"samuelfullerthomas/cookieman","owner":{"login":"samuelfullerthomas","id":10165959,"avatar_url":"https://avatars.githubusercontent.com/u/10165959?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelfullerthomas","html_url":"https://github.com/samuelfullerthomas","followers_url":"https://api.github.com/users/samuelfullerthomas/followers","following_url":"https://api.github.com/users/samuelfullerthomas/following{/other_user}","gists_url":"https://api.github.com/users/samuelfullerthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelfullerthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelfullerthomas/subscriptions","organizations_url":"https://api.github.com/users/samuelfullerthomas/orgs","repos_url":"https://api.github.com/users/samuelfullerthomas/repos","events_url":"https://api.github.com/users/samuelfullerthomas/events{/privacy}","received_events_url":"https://api.github.com/users/samuelfullerthomas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samuelfullerthomas/cookieman","description":"simple cookie lib","fork":true,"url":"https://api.github.com/repos/samuelfullerthomas/cookieman","forks_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/forks","keys_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/teams","hooks_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/hooks","issue_events_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/issues/events{/number}","events_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/events","assignees_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/assignees{/user}","branches_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/branches{/branch}","tags_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/tags","blobs_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/git/refs{/sha}","trees_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/statuses/{sha}","languages_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/languages","stargazers_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/stargazers","contributors_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/contributors","subscribers_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/subscribers","subscription_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/subscription","commits_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/commits{/sha}","git_commits_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/git/commits{/sha}","comments_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/comments{/number}","issue_comment_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/issues/comments{/number}","contents_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/contents/{+path}","compare_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/merges","archive_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/downloads","issues_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/issues{/number}","pulls_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/pulls{/number}","milestones_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/milestones{/number}","notifications_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/labels{/name}","releases_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/releases{/id}","deployments_url":"https://api.github.com/repos/samuelfullerthomas/cookieman/deployments","created_at":"2016-06-03T14:21:54Z","updated_at":"2016-06-03T14:21:54Z","pushed_at":"2016-06-06T18:20:21Z","git_url":"git://github.com/samuelfullerthomas/cookieman.git","ssh_url":"git@github.com:samuelfullerthomas/cookieman.git","clone_url":"https://github.com/samuelfullerthomas/cookieman.git","svn_url":"https://github.com/samuelfullerthomas/cookieman","homepage":null,"size":54,"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":"QubitProducts:master","ref":"master","sha":"25f933ccabd657a2033ce196b869045dd0fcdce3","user":{"login":"QubitProducts","id":827777,"avatar_url":"https://avatars.githubusercontent.com/u/827777?v=3","gravatar_id":"","url":"https://api.github.com/users/QubitProducts","html_url":"https://github.com/QubitProducts","followers_url":"https://api.github.com/users/QubitProducts/followers","following_url":"https://api.github.com/users/QubitProducts/following{/other_user}","gists_url":"https://api.github.com/users/QubitProducts/gists{/gist_id}","starred_url":"https://api.github.com/users/QubitProducts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QubitProducts/subscriptions","organizations_url":"https://api.github.com/users/QubitProducts/orgs","repos_url":"https://api.github.com/users/QubitProducts/repos","events_url":"https://api.github.com/users/QubitProducts/events{/privacy}","received_events_url":"https://api.github.com/users/QubitProducts/received_events","type":"Organization","site_admin":false},"repo":{"id":25879967,"name":"cookieman","full_name":"QubitProducts/cookieman","owner":{"login":"QubitProducts","id":827777,"avatar_url":"https://avatars.githubusercontent.com/u/827777?v=3","gravatar_id":"","url":"https://api.github.com/users/QubitProducts","html_url":"https://github.com/QubitProducts","followers_url":"https://api.github.com/users/QubitProducts/followers","following_url":"https://api.github.com/users/QubitProducts/following{/other_user}","gists_url":"https://api.github.com/users/QubitProducts/gists{/gist_id}","starred_url":"https://api.github.com/users/QubitProducts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QubitProducts/subscriptions","organizations_url":"https://api.github.com/users/QubitProducts/orgs","repos_url":"https://api.github.com/users/QubitProducts/repos","events_url":"https://api.github.com/users/QubitProducts/events{/privacy}","received_events_url":"https://api.github.com/users/QubitProducts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/QubitProducts/cookieman","description":"simple cookie lib","fork":false,"url":"https://api.github.com/repos/QubitProducts/cookieman","forks_url":"https://api.github.com/repos/QubitProducts/cookieman/forks","keys_url":"https://api.github.com/repos/QubitProducts/cookieman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QubitProducts/cookieman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QubitProducts/cookieman/teams","hooks_url":"https://api.github.com/repos/QubitProducts/cookieman/hooks","issue_events_url":"https://api.github.com/repos/QubitProducts/cookieman/issues/events{/number}","events_url":"https://api.github.com/repos/QubitProducts/cookieman/events","assignees_url":"https://api.github.com/repos/QubitProducts/cookieman/assignees{/user}","branches_url":"https://api.github.com/repos/QubitProducts/cookieman/branches{/branch}","tags_url":"https://api.github.com/repos/QubitProducts/cookieman/tags","blobs_url":"https://api.github.com/repos/QubitProducts/cookieman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QubitProducts/cookieman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QubitProducts/cookieman/git/refs{/sha}","trees_url":"https://api.github.com/repos/QubitProducts/cookieman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QubitProducts/cookieman/statuses/{sha}","languages_url":"https://api.github.com/repos/QubitProducts/cookieman/languages","stargazers_url":"https://api.github.com/repos/QubitProducts/cookieman/stargazers","contributors_url":"https://api.github.com/repos/QubitProducts/cookieman/contributors","subscribers_url":"https://api.github.com/repos/QubitProducts/cookieman/subscribers","subscription_url":"https://api.github.com/repos/QubitProducts/cookieman/subscription","commits_url":"https://api.github.com/repos/QubitProducts/cookieman/commits{/sha}","git_commits_url":"https://api.github.com/repos/QubitProducts/cookieman/git/commits{/sha}","comments_url":"https://api.github.com/repos/QubitProducts/cookieman/comments{/number}","issue_comment_url":"https://api.github.com/repos/QubitProducts/cookieman/issues/comments{/number}","contents_url":"https://api.github.com/repos/QubitProducts/cookieman/contents/{+path}","compare_url":"https://api.github.com/repos/QubitProducts/cookieman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QubitProducts/cookieman/merges","archive_url":"https://api.github.com/repos/QubitProducts/cookieman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QubitProducts/cookieman/downloads","issues_url":"https://api.github.com/repos/QubitProducts/cookieman/issues{/number}","pulls_url":"https://api.github.com/repos/QubitProducts/cookieman/pulls{/number}","milestones_url":"https://api.github.com/repos/QubitProducts/cookieman/milestones{/number}","notifications_url":"https://api.github.com/repos/QubitProducts/cookieman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QubitProducts/cookieman/labels{/name}","releases_url":"https://api.github.com/repos/QubitProducts/cookieman/releases{/id}","deployments_url":"https://api.github.com/repos/QubitProducts/cookieman/deployments","created_at":"2014-10-28T16:55:15Z","updated_at":"2016-06-06T21:18:37Z","pushed_at":"2016-06-06T18:20:21Z","git_url":"git://github.com/QubitProducts/cookieman.git","ssh_url":"git@github.com:QubitProducts/cookieman.git","clone_url":"https://github.com/QubitProducts/cookieman.git","svn_url":"https://github.com/QubitProducts/cookieman","homepage":null,"size":51,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/QubitProducts/cookieman/pulls/13"},"html":{"href":"https://github.com/QubitProducts/cookieman/pull/13"},"issue":{"href":"https://api.github.com/repos/QubitProducts/cookieman/issues/13"},"comments":{"href":"https://api.github.com/repos/QubitProducts/cookieman/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/QubitProducts/cookieman/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/QubitProducts/cookieman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/QubitProducts/cookieman/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/QubitProducts/cookieman/statuses/55cf381af562e0db8a2c986a5ddaa6c1104d3619"}}}}
{"actor":{"display_login":"samuelfullerthomas"}}