{"action":"created","comment":{"url":"https://api.github.com/repos/gulpjs/value-or-function/pulls/comments/67270313","id":67270313,"diff_hunk":"@@ -50,4 +50,12 @@ types.forEach(function(type) {\n   normalize[type] = normalize.bind(null, type);\n });\n \n+normalize.date = function(value) {\n+  function dateOrTimestamp(value) {","path":"index.js","position":5,"original_position":5,"commit_id":"d63a5ed21f6d3731807300912b608ceb22218416","original_commit_id":"d63a5ed21f6d3731807300912b608ceb22218416","user":{"login":"phated","id":992373,"avatar_url":"https://avatars.githubusercontent.com/u/992373?v=3","gravatar_id":"","url":"https://api.github.com/users/phated","html_url":"https://github.com/phated","followers_url":"https://api.github.com/users/phated/followers","following_url":"https://api.github.com/users/phated/following{/other_user}","gists_url":"https://api.github.com/users/phated/gists{/gist_id}","starred_url":"https://api.github.com/users/phated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phated/subscriptions","organizations_url":"https://api.github.com/users/phated/orgs","repos_url":"https://api.github.com/users/phated/repos","events_url":"https://api.github.com/users/phated/events{/privacy}","received_events_url":"https://api.github.com/users/phated/received_events","type":"User","site_admin":false},"body":"this can be hoisted and then you can use `normalize.date = normalize.bind(null, dateOrTimestamp)`","created_at":"2016-06-16T00:30:51Z","updated_at":"2016-06-16T00:30:51Z","html_url":"https://github.com/gulpjs/value-or-function/pull/2#discussion_r67270313","pull_request_url":"https://api.github.com/repos/gulpjs/value-or-function/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/gulpjs/value-or-function/pulls/comments/67270313"},"html":{"href":"https://github.com/gulpjs/value-or-function/pull/2#discussion_r67270313"},"pull_request":{"href":"https://api.github.com/repos/gulpjs/value-or-function/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/gulpjs/value-or-function/pulls/2","id":73052260,"html_url":"https://github.com/gulpjs/value-or-function/pull/2","diff_url":"https://github.com/gulpjs/value-or-function/pull/2.diff","patch_url":"https://github.com/gulpjs/value-or-function/pull/2.patch","issue_url":"https://api.github.com/repos/gulpjs/value-or-function/issues/2","number":2,"state":"open","locked":false,"title":"New: date shorthand","user":{"login":"hgwood","id":1656170,"avatar_url":"https://avatars.githubusercontent.com/u/1656170?v=3","gravatar_id":"","url":"https://api.github.com/users/hgwood","html_url":"https://github.com/hgwood","followers_url":"https://api.github.com/users/hgwood/followers","following_url":"https://api.github.com/users/hgwood/following{/other_user}","gists_url":"https://api.github.com/users/hgwood/gists{/gist_id}","starred_url":"https://api.github.com/users/hgwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgwood/subscriptions","organizations_url":"https://api.github.com/users/hgwood/orgs","repos_url":"https://api.github.com/users/hgwood/repos","events_url":"https://api.github.com/users/hgwood/events{/privacy}","received_events_url":"https://api.github.com/users/hgwood/received_events","type":"User","site_admin":false},"body":"As mentioned in #1.\r\n\r\n`date()` accepts numbers and instances of `Date`. This aligns with the needs of `vinyl-fs`.\r\n\r\nI don't know if you want this to work in browsers. I assumed you wouldn't care so I used `instanceof`, but there are plenty of other techniques available if needed.","created_at":"2016-06-08T14:05:07Z","updated_at":"2016-06-16T00:30:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86cc6cce6f54650a7ea6c7afd115e5b79a49126a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gulpjs/value-or-function/pulls/2/commits","review_comments_url":"https://api.github.com/repos/gulpjs/value-or-function/pulls/2/comments","review_comment_url":"https://api.github.com/repos/gulpjs/value-or-function/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gulpjs/value-or-function/issues/2/comments","statuses_url":"https://api.github.com/repos/gulpjs/value-or-function/statuses/d63a5ed21f6d3731807300912b608ceb22218416","head":{"label":"hgwood:feat/date","ref":"feat/date","sha":"d63a5ed21f6d3731807300912b608ceb22218416","user":{"login":"hgwood","id":1656170,"avatar_url":"https://avatars.githubusercontent.com/u/1656170?v=3","gravatar_id":"","url":"https://api.github.com/users/hgwood","html_url":"https://github.com/hgwood","followers_url":"https://api.github.com/users/hgwood/followers","following_url":"https://api.github.com/users/hgwood/following{/other_user}","gists_url":"https://api.github.com/users/hgwood/gists{/gist_id}","starred_url":"https://api.github.com/users/hgwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgwood/subscriptions","organizations_url":"https://api.github.com/users/hgwood/orgs","repos_url":"https://api.github.com/users/hgwood/repos","events_url":"https://api.github.com/users/hgwood/events{/privacy}","received_events_url":"https://api.github.com/users/hgwood/received_events","type":"User","site_admin":false},"repo":{"id":60700708,"name":"value-or-function","full_name":"hgwood/value-or-function","owner":{"login":"hgwood","id":1656170,"avatar_url":"https://avatars.githubusercontent.com/u/1656170?v=3","gravatar_id":"","url":"https://api.github.com/users/hgwood","html_url":"https://github.com/hgwood","followers_url":"https://api.github.com/users/hgwood/followers","following_url":"https://api.github.com/users/hgwood/following{/other_user}","gists_url":"https://api.github.com/users/hgwood/gists{/gist_id}","starred_url":"https://api.github.com/users/hgwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgwood/subscriptions","organizations_url":"https://api.github.com/users/hgwood/orgs","repos_url":"https://api.github.com/users/hgwood/repos","events_url":"https://api.github.com/users/hgwood/events{/privacy}","received_events_url":"https://api.github.com/users/hgwood/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hgwood/value-or-function","description":"Normalize a value or function, applying extra args to the function","fork":true,"url":"https://api.github.com/repos/hgwood/value-or-function","forks_url":"https://api.github.com/repos/hgwood/value-or-function/forks","keys_url":"https://api.github.com/repos/hgwood/value-or-function/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hgwood/value-or-function/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hgwood/value-or-function/teams","hooks_url":"https://api.github.com/repos/hgwood/value-or-function/hooks","issue_events_url":"https://api.github.com/repos/hgwood/value-or-function/issues/events{/number}","events_url":"https://api.github.com/repos/hgwood/value-or-function/events","assignees_url":"https://api.github.com/repos/hgwood/value-or-function/assignees{/user}","branches_url":"https://api.github.com/repos/hgwood/value-or-function/branches{/branch}","tags_url":"https://api.github.com/repos/hgwood/value-or-function/tags","blobs_url":"https://api.github.com/repos/hgwood/value-or-function/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hgwood/value-or-function/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hgwood/value-or-function/git/refs{/sha}","trees_url":"https://api.github.com/repos/hgwood/value-or-function/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hgwood/value-or-function/statuses/{sha}","languages_url":"https://api.github.com/repos/hgwood/value-or-function/languages","stargazers_url":"https://api.github.com/repos/hgwood/value-or-function/stargazers","contributors_url":"https://api.github.com/repos/hgwood/value-or-function/contributors","subscribers_url":"https://api.github.com/repos/hgwood/value-or-function/subscribers","subscription_url":"https://api.github.com/repos/hgwood/value-or-function/subscription","commits_url":"https://api.github.com/repos/hgwood/value-or-function/commits{/sha}","git_commits_url":"https://api.github.com/repos/hgwood/value-or-function/git/commits{/sha}","comments_url":"https://api.github.com/repos/hgwood/value-or-function/comments{/number}","issue_comment_url":"https://api.github.com/repos/hgwood/value-or-function/issues/comments{/number}","contents_url":"https://api.github.com/repos/hgwood/value-or-function/contents/{+path}","compare_url":"https://api.github.com/repos/hgwood/value-or-function/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hgwood/value-or-function/merges","archive_url":"https://api.github.com/repos/hgwood/value-or-function/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hgwood/value-or-function/downloads","issues_url":"https://api.github.com/repos/hgwood/value-or-function/issues{/number}","pulls_url":"https://api.github.com/repos/hgwood/value-or-function/pulls{/number}","milestones_url":"https://api.github.com/repos/hgwood/value-or-function/milestones{/number}","notifications_url":"https://api.github.com/repos/hgwood/value-or-function/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hgwood/value-or-function/labels{/name}","releases_url":"https://api.github.com/repos/hgwood/value-or-function/releases{/id}","deployments_url":"https://api.github.com/repos/hgwood/value-or-function/deployments","created_at":"2016-06-08T13:40:07Z","updated_at":"2016-06-08T13:40:08Z","pushed_at":"2016-06-13T22:16:49Z","git_url":"git://github.com/hgwood/value-or-function.git","ssh_url":"git@github.com:hgwood/value-or-function.git","clone_url":"https://github.com/hgwood/value-or-function.git","svn_url":"https://github.com/hgwood/value-or-function","homepage":null,"size":9,"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":"gulpjs:master","ref":"master","sha":"444b78ee7b3d4dad46ce62fe85a756e9d006663a","user":{"login":"gulpjs","id":6200624,"avatar_url":"https://avatars.githubusercontent.com/u/6200624?v=3","gravatar_id":"","url":"https://api.github.com/users/gulpjs","html_url":"https://github.com/gulpjs","followers_url":"https://api.github.com/users/gulpjs/followers","following_url":"https://api.github.com/users/gulpjs/following{/other_user}","gists_url":"https://api.github.com/users/gulpjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gulpjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gulpjs/subscriptions","organizations_url":"https://api.github.com/users/gulpjs/orgs","repos_url":"https://api.github.com/users/gulpjs/repos","events_url":"https://api.github.com/users/gulpjs/events{/privacy}","received_events_url":"https://api.github.com/users/gulpjs/received_events","type":"Organization","site_admin":false},"repo":{"id":48140881,"name":"value-or-function","full_name":"gulpjs/value-or-function","owner":{"login":"gulpjs","id":6200624,"avatar_url":"https://avatars.githubusercontent.com/u/6200624?v=3","gravatar_id":"","url":"https://api.github.com/users/gulpjs","html_url":"https://github.com/gulpjs","followers_url":"https://api.github.com/users/gulpjs/followers","following_url":"https://api.github.com/users/gulpjs/following{/other_user}","gists_url":"https://api.github.com/users/gulpjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gulpjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gulpjs/subscriptions","organizations_url":"https://api.github.com/users/gulpjs/orgs","repos_url":"https://api.github.com/users/gulpjs/repos","events_url":"https://api.github.com/users/gulpjs/events{/privacy}","received_events_url":"https://api.github.com/users/gulpjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gulpjs/value-or-function","description":"Normalize a value or function, applying extra args to the function","fork":false,"url":"https://api.github.com/repos/gulpjs/value-or-function","forks_url":"https://api.github.com/repos/gulpjs/value-or-function/forks","keys_url":"https://api.github.com/repos/gulpjs/value-or-function/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gulpjs/value-or-function/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gulpjs/value-or-function/teams","hooks_url":"https://api.github.com/repos/gulpjs/value-or-function/hooks","issue_events_url":"https://api.github.com/repos/gulpjs/value-or-function/issues/events{/number}","events_url":"https://api.github.com/repos/gulpjs/value-or-function/events","assignees_url":"https://api.github.com/repos/gulpjs/value-or-function/assignees{/user}","branches_url":"https://api.github.com/repos/gulpjs/value-or-function/branches{/branch}","tags_url":"https://api.github.com/repos/gulpjs/value-or-function/tags","blobs_url":"https://api.github.com/repos/gulpjs/value-or-function/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gulpjs/value-or-function/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gulpjs/value-or-function/git/refs{/sha}","trees_url":"https://api.github.com/repos/gulpjs/value-or-function/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gulpjs/value-or-function/statuses/{sha}","languages_url":"https://api.github.com/repos/gulpjs/value-or-function/languages","stargazers_url":"https://api.github.com/repos/gulpjs/value-or-function/stargazers","contributors_url":"https://api.github.com/repos/gulpjs/value-or-function/contributors","subscribers_url":"https://api.github.com/repos/gulpjs/value-or-function/subscribers","subscription_url":"https://api.github.com/repos/gulpjs/value-or-function/subscription","commits_url":"https://api.github.com/repos/gulpjs/value-or-function/commits{/sha}","git_commits_url":"https://api.github.com/repos/gulpjs/value-or-function/git/commits{/sha}","comments_url":"https://api.github.com/repos/gulpjs/value-or-function/comments{/number}","issue_comment_url":"https://api.github.com/repos/gulpjs/value-or-function/issues/comments{/number}","contents_url":"https://api.github.com/repos/gulpjs/value-or-function/contents/{+path}","compare_url":"https://api.github.com/repos/gulpjs/value-or-function/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gulpjs/value-or-function/merges","archive_url":"https://api.github.com/repos/gulpjs/value-or-function/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gulpjs/value-or-function/downloads","issues_url":"https://api.github.com/repos/gulpjs/value-or-function/issues{/number}","pulls_url":"https://api.github.com/repos/gulpjs/value-or-function/pulls{/number}","milestones_url":"https://api.github.com/repos/gulpjs/value-or-function/milestones{/number}","notifications_url":"https://api.github.com/repos/gulpjs/value-or-function/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gulpjs/value-or-function/labels{/name}","releases_url":"https://api.github.com/repos/gulpjs/value-or-function/releases{/id}","deployments_url":"https://api.github.com/repos/gulpjs/value-or-function/deployments","created_at":"2015-12-16T23:24:57Z","updated_at":"2016-04-22T05:30:59Z","pushed_at":"2016-06-13T22:16:51Z","git_url":"git://github.com/gulpjs/value-or-function.git","ssh_url":"git@github.com:gulpjs/value-or-function.git","clone_url":"https://github.com/gulpjs/value-or-function.git","svn_url":"https://github.com/gulpjs/value-or-function","homepage":null,"size":15,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gulpjs/value-or-function/pulls/2"},"html":{"href":"https://github.com/gulpjs/value-or-function/pull/2"},"issue":{"href":"https://api.github.com/repos/gulpjs/value-or-function/issues/2"},"comments":{"href":"https://api.github.com/repos/gulpjs/value-or-function/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/gulpjs/value-or-function/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/gulpjs/value-or-function/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gulpjs/value-or-function/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/gulpjs/value-or-function/statuses/d63a5ed21f6d3731807300912b608ceb22218416"}}}}
{"actor":{"display_login":"phated"}}