{"action":"opened","number":50,"pull_request":{"url":"https://api.github.com/repos/raszi/node-tmp/pulls/50","id":35020664,"html_url":"https://github.com/raszi/node-tmp/pull/50","diff_url":"https://github.com/raszi/node-tmp/pull/50.diff","patch_url":"https://github.com/raszi/node-tmp/pull/50.patch","issue_url":"https://api.github.com/repos/raszi/node-tmp/issues/50","number":50,"state":"open","locked":false,"title":"use `os.tmpdir()` polyfill for more consistent behaviour","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"body":"The `os.tmpdir()` method has changed a lot between Node versions and it would be nice for users if it were consistent between Node versions. This might even prevent hard to track down bugs. It also has the added benefit of removing some code, which is always good.\r\n\r\nNode 0.10.38: https://github.com/joyent/node/blob/0b5731a63cc40c4fe9275c79158fe0a5dd4d1609/lib/os.js#L44-L49\r\n\r\nio.js 2.0.1: https://github.com/iojs/io.js/blob/6c80e38b014b7be570ffafa91032a6d67d7dd4ae/lib/os.js#L25-L40\r\n\r\nFrom io.js changelog:\r\n\r\n> os.tmpdir() is now cross-platform consistent and will no longer returns a path with a trailling slash on any platform\r\n\r\n> Updated os.tmpdir on Windows to use the %SystemRoot% or %WINDIR% environment variables instead of the hard-coded value of c:\\windows when determining the temporary directory location.\r\n\r\n---\r\n\r\nhttps://github.com/sindresorhus/os-tmpdir","created_at":"2015-05-08T15:44:57Z","updated_at":"2015-05-08T15:44:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/raszi/node-tmp/pulls/50/commits","review_comments_url":"https://api.github.com/repos/raszi/node-tmp/pulls/50/comments","review_comment_url":"https://api.github.com/repos/raszi/node-tmp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/raszi/node-tmp/issues/50/comments","statuses_url":"https://api.github.com/repos/raszi/node-tmp/statuses/aed1ff947ab798dd1b66198f96b21ae9e4a8c3ff","head":{"label":"sindresorhus:ostmpdir-polyfill","ref":"ostmpdir-polyfill","sha":"aed1ff947ab798dd1b66198f96b21ae9e4a8c3ff","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":35287377,"name":"node-tmp","full_name":"sindresorhus/node-tmp","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/node-tmp","description":"Temporary file and directory creator for node.js","fork":true,"url":"https://api.github.com/repos/sindresorhus/node-tmp","forks_url":"https://api.github.com/repos/sindresorhus/node-tmp/forks","keys_url":"https://api.github.com/repos/sindresorhus/node-tmp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/node-tmp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/node-tmp/teams","hooks_url":"https://api.github.com/repos/sindresorhus/node-tmp/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/node-tmp/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/node-tmp/events","assignees_url":"https://api.github.com/repos/sindresorhus/node-tmp/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/node-tmp/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/node-tmp/tags","blobs_url":"https://api.github.com/repos/sindresorhus/node-tmp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/node-tmp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/node-tmp/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/node-tmp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/node-tmp/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/node-tmp/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/node-tmp/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/node-tmp/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/node-tmp/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/node-tmp/subscription","commits_url":"https://api.github.com/repos/sindresorhus/node-tmp/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/node-tmp/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/node-tmp/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/node-tmp/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/node-tmp/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/node-tmp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/node-tmp/merges","archive_url":"https://api.github.com/repos/sindresorhus/node-tmp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/node-tmp/downloads","issues_url":"https://api.github.com/repos/sindresorhus/node-tmp/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/node-tmp/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/node-tmp/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/node-tmp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/node-tmp/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/node-tmp/releases{/id}","created_at":"2015-05-08T15:38:34Z","updated_at":"2015-05-08T15:38:35Z","pushed_at":"2015-05-08T15:44:11Z","git_url":"git://github.com/sindresorhus/node-tmp.git","ssh_url":"git@github.com:sindresorhus/node-tmp.git","clone_url":"https://github.com/sindresorhus/node-tmp.git","svn_url":"https://github.com/sindresorhus/node-tmp","homepage":"","size":495,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"raszi:master","ref":"master","sha":"9bc9f93734d5634290c4334f9efc88976568136c","user":{"login":"raszi","id":76983,"avatar_url":"https://avatars.githubusercontent.com/u/76983?v=3","gravatar_id":"","url":"https://api.github.com/users/raszi","html_url":"https://github.com/raszi","followers_url":"https://api.github.com/users/raszi/followers","following_url":"https://api.github.com/users/raszi/following{/other_user}","gists_url":"https://api.github.com/users/raszi/gists{/gist_id}","starred_url":"https://api.github.com/users/raszi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raszi/subscriptions","organizations_url":"https://api.github.com/users/raszi/orgs","repos_url":"https://api.github.com/users/raszi/repos","events_url":"https://api.github.com/users/raszi/events{/privacy}","received_events_url":"https://api.github.com/users/raszi/received_events","type":"User","site_admin":false},"repo":{"id":2313213,"name":"node-tmp","full_name":"raszi/node-tmp","owner":{"login":"raszi","id":76983,"avatar_url":"https://avatars.githubusercontent.com/u/76983?v=3","gravatar_id":"","url":"https://api.github.com/users/raszi","html_url":"https://github.com/raszi","followers_url":"https://api.github.com/users/raszi/followers","following_url":"https://api.github.com/users/raszi/following{/other_user}","gists_url":"https://api.github.com/users/raszi/gists{/gist_id}","starred_url":"https://api.github.com/users/raszi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raszi/subscriptions","organizations_url":"https://api.github.com/users/raszi/orgs","repos_url":"https://api.github.com/users/raszi/repos","events_url":"https://api.github.com/users/raszi/events{/privacy}","received_events_url":"https://api.github.com/users/raszi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raszi/node-tmp","description":"Temporary file and directory creator for node.js","fork":false,"url":"https://api.github.com/repos/raszi/node-tmp","forks_url":"https://api.github.com/repos/raszi/node-tmp/forks","keys_url":"https://api.github.com/repos/raszi/node-tmp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raszi/node-tmp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raszi/node-tmp/teams","hooks_url":"https://api.github.com/repos/raszi/node-tmp/hooks","issue_events_url":"https://api.github.com/repos/raszi/node-tmp/issues/events{/number}","events_url":"https://api.github.com/repos/raszi/node-tmp/events","assignees_url":"https://api.github.com/repos/raszi/node-tmp/assignees{/user}","branches_url":"https://api.github.com/repos/raszi/node-tmp/branches{/branch}","tags_url":"https://api.github.com/repos/raszi/node-tmp/tags","blobs_url":"https://api.github.com/repos/raszi/node-tmp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raszi/node-tmp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raszi/node-tmp/git/refs{/sha}","trees_url":"https://api.github.com/repos/raszi/node-tmp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raszi/node-tmp/statuses/{sha}","languages_url":"https://api.github.com/repos/raszi/node-tmp/languages","stargazers_url":"https://api.github.com/repos/raszi/node-tmp/stargazers","contributors_url":"https://api.github.com/repos/raszi/node-tmp/contributors","subscribers_url":"https://api.github.com/repos/raszi/node-tmp/subscribers","subscription_url":"https://api.github.com/repos/raszi/node-tmp/subscription","commits_url":"https://api.github.com/repos/raszi/node-tmp/commits{/sha}","git_commits_url":"https://api.github.com/repos/raszi/node-tmp/git/commits{/sha}","comments_url":"https://api.github.com/repos/raszi/node-tmp/comments{/number}","issue_comment_url":"https://api.github.com/repos/raszi/node-tmp/issues/comments{/number}","contents_url":"https://api.github.com/repos/raszi/node-tmp/contents/{+path}","compare_url":"https://api.github.com/repos/raszi/node-tmp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raszi/node-tmp/merges","archive_url":"https://api.github.com/repos/raszi/node-tmp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raszi/node-tmp/downloads","issues_url":"https://api.github.com/repos/raszi/node-tmp/issues{/number}","pulls_url":"https://api.github.com/repos/raszi/node-tmp/pulls{/number}","milestones_url":"https://api.github.com/repos/raszi/node-tmp/milestones{/number}","notifications_url":"https://api.github.com/repos/raszi/node-tmp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raszi/node-tmp/labels{/name}","releases_url":"https://api.github.com/repos/raszi/node-tmp/releases{/id}","created_at":"2011-09-02T10:39:43Z","updated_at":"2015-05-05T13:31:31Z","pushed_at":"2015-03-27T20:41:36Z","git_url":"git://github.com/raszi/node-tmp.git","ssh_url":"git@github.com:raszi/node-tmp.git","clone_url":"https://github.com/raszi/node-tmp.git","svn_url":"https://github.com/raszi/node-tmp","homepage":"","size":495,"stargazers_count":114,"watchers_count":114,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":7,"forks":25,"open_issues":7,"watchers":114,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/raszi/node-tmp/pulls/50"},"html":{"href":"https://github.com/raszi/node-tmp/pull/50"},"issue":{"href":"https://api.github.com/repos/raszi/node-tmp/issues/50"},"comments":{"href":"https://api.github.com/repos/raszi/node-tmp/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/raszi/node-tmp/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/raszi/node-tmp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/raszi/node-tmp/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/raszi/node-tmp/statuses/aed1ff947ab798dd1b66198f96b21ae9e4a8c3ff"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":22,"changed_files":2}}