{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/sindresorhus/maxmin/pulls/3","id":32162592,"html_url":"https://github.com/sindresorhus/maxmin/pull/3","diff_url":"https://github.com/sindresorhus/maxmin/pull/3.diff","patch_url":"https://github.com/sindresorhus/maxmin/pull/3.patch","issue_url":"https://api.github.com/repos/sindresorhus/maxmin/issues/3","number":3,"state":"closed","locked":false,"title":"Accept also max, min to be a number (the size of the string/buffer in bytes)","user":{"login":"philippsimon","id":2590857,"avatar_url":"https://avatars.githubusercontent.com/u/2590857?v=3","gravatar_id":"","url":"https://api.github.com/users/philippsimon","html_url":"https://github.com/philippsimon","followers_url":"https://api.github.com/users/philippsimon/followers","following_url":"https://api.github.com/users/philippsimon/following{/other_user}","gists_url":"https://api.github.com/users/philippsimon/gists{/gist_id}","starred_url":"https://api.github.com/users/philippsimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippsimon/subscriptions","organizations_url":"https://api.github.com/users/philippsimon/orgs","repos_url":"https://api.github.com/users/philippsimon/repos","events_url":"https://api.github.com/users/philippsimon/events{/privacy}","received_events_url":"https://api.github.com/users/philippsimon/received_events","type":"User","site_admin":false},"body":"To create a summary report for some grunt-contrib modules it would be good to allow max & min be only the size of the string or buffer. Otherwise we would need to keep all the strings / buffers in memory which requires a lot of memory.\r\nSee https://github.com/gruntjs/grunt-contrib-cssmin/pull/200\r\n\r\nBeside a test for it I also added a test for max, min being buffers.","created_at":"2015-03-28T10:35:09Z","updated_at":"2015-03-29T10:31:48Z","closed_at":"2015-03-29T10:31:48Z","merged_at":null,"merge_commit_sha":"0315087ea30eec2cd0cffd5b4511c66a08c57a9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/maxmin/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/maxmin/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/maxmin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/maxmin/issues/3/comments","statuses_url":"https://api.github.com/repos/sindresorhus/maxmin/statuses/b9357e67d27b1d9eca8c374c5788e509c241c8b2","head":{"label":"philippsimon:master","ref":"master","sha":"b9357e67d27b1d9eca8c374c5788e509c241c8b2","user":{"login":"philippsimon","id":2590857,"avatar_url":"https://avatars.githubusercontent.com/u/2590857?v=3","gravatar_id":"","url":"https://api.github.com/users/philippsimon","html_url":"https://github.com/philippsimon","followers_url":"https://api.github.com/users/philippsimon/followers","following_url":"https://api.github.com/users/philippsimon/following{/other_user}","gists_url":"https://api.github.com/users/philippsimon/gists{/gist_id}","starred_url":"https://api.github.com/users/philippsimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippsimon/subscriptions","organizations_url":"https://api.github.com/users/philippsimon/orgs","repos_url":"https://api.github.com/users/philippsimon/repos","events_url":"https://api.github.com/users/philippsimon/events{/privacy}","received_events_url":"https://api.github.com/users/philippsimon/received_events","type":"User","site_admin":false},"repo":{"id":33029370,"name":"maxmin","full_name":"philippsimon/maxmin","owner":{"login":"philippsimon","id":2590857,"avatar_url":"https://avatars.githubusercontent.com/u/2590857?v=3","gravatar_id":"","url":"https://api.github.com/users/philippsimon","html_url":"https://github.com/philippsimon","followers_url":"https://api.github.com/users/philippsimon/followers","following_url":"https://api.github.com/users/philippsimon/following{/other_user}","gists_url":"https://api.github.com/users/philippsimon/gists{/gist_id}","starred_url":"https://api.github.com/users/philippsimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippsimon/subscriptions","organizations_url":"https://api.github.com/users/philippsimon/orgs","repos_url":"https://api.github.com/users/philippsimon/repos","events_url":"https://api.github.com/users/philippsimon/events{/privacy}","received_events_url":"https://api.github.com/users/philippsimon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/philippsimon/maxmin","description":"Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)","fork":true,"url":"https://api.github.com/repos/philippsimon/maxmin","forks_url":"https://api.github.com/repos/philippsimon/maxmin/forks","keys_url":"https://api.github.com/repos/philippsimon/maxmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/philippsimon/maxmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/philippsimon/maxmin/teams","hooks_url":"https://api.github.com/repos/philippsimon/maxmin/hooks","issue_events_url":"https://api.github.com/repos/philippsimon/maxmin/issues/events{/number}","events_url":"https://api.github.com/repos/philippsimon/maxmin/events","assignees_url":"https://api.github.com/repos/philippsimon/maxmin/assignees{/user}","branches_url":"https://api.github.com/repos/philippsimon/maxmin/branches{/branch}","tags_url":"https://api.github.com/repos/philippsimon/maxmin/tags","blobs_url":"https://api.github.com/repos/philippsimon/maxmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/philippsimon/maxmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/philippsimon/maxmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/philippsimon/maxmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/philippsimon/maxmin/statuses/{sha}","languages_url":"https://api.github.com/repos/philippsimon/maxmin/languages","stargazers_url":"https://api.github.com/repos/philippsimon/maxmin/stargazers","contributors_url":"https://api.github.com/repos/philippsimon/maxmin/contributors","subscribers_url":"https://api.github.com/repos/philippsimon/maxmin/subscribers","subscription_url":"https://api.github.com/repos/philippsimon/maxmin/subscription","commits_url":"https://api.github.com/repos/philippsimon/maxmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/philippsimon/maxmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/philippsimon/maxmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/philippsimon/maxmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/philippsimon/maxmin/contents/{+path}","compare_url":"https://api.github.com/repos/philippsimon/maxmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/philippsimon/maxmin/merges","archive_url":"https://api.github.com/repos/philippsimon/maxmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/philippsimon/maxmin/downloads","issues_url":"https://api.github.com/repos/philippsimon/maxmin/issues{/number}","pulls_url":"https://api.github.com/repos/philippsimon/maxmin/pulls{/number}","milestones_url":"https://api.github.com/repos/philippsimon/maxmin/milestones{/number}","notifications_url":"https://api.github.com/repos/philippsimon/maxmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/philippsimon/maxmin/labels{/name}","releases_url":"https://api.github.com/repos/philippsimon/maxmin/releases{/id}","created_at":"2015-03-28T10:24:41Z","updated_at":"2015-03-29T10:26:43Z","pushed_at":"2015-03-29T10:26:43Z","git_url":"git://github.com/philippsimon/maxmin.git","ssh_url":"git@github.com:philippsimon/maxmin.git","clone_url":"https://github.com/philippsimon/maxmin.git","svn_url":"https://github.com/philippsimon/maxmin","homepage":null,"size":95,"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":"sindresorhus:master","ref":"master","sha":"7c68025643c21e6cfa8ea7c54e557cdbf5879c5c","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":17299718,"name":"maxmin","full_name":"sindresorhus/maxmin","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/maxmin","description":"Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)","fork":false,"url":"https://api.github.com/repos/sindresorhus/maxmin","forks_url":"https://api.github.com/repos/sindresorhus/maxmin/forks","keys_url":"https://api.github.com/repos/sindresorhus/maxmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/maxmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/maxmin/teams","hooks_url":"https://api.github.com/repos/sindresorhus/maxmin/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/maxmin/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/maxmin/events","assignees_url":"https://api.github.com/repos/sindresorhus/maxmin/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/maxmin/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/maxmin/tags","blobs_url":"https://api.github.com/repos/sindresorhus/maxmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/maxmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/maxmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/maxmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/maxmin/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/maxmin/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/maxmin/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/maxmin/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/maxmin/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/maxmin/subscription","commits_url":"https://api.github.com/repos/sindresorhus/maxmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/maxmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/maxmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/maxmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/maxmin/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/maxmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/maxmin/merges","archive_url":"https://api.github.com/repos/sindresorhus/maxmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/maxmin/downloads","issues_url":"https://api.github.com/repos/sindresorhus/maxmin/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/maxmin/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/maxmin/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/maxmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/maxmin/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/maxmin/releases{/id}","created_at":"2014-02-28T21:05:17Z","updated_at":"2015-03-29T10:31:48Z","pushed_at":"2015-03-29T10:31:48Z","git_url":"git://github.com/sindresorhus/maxmin.git","ssh_url":"git@github.com:sindresorhus/maxmin.git","clone_url":"https://github.com/sindresorhus/maxmin.git","svn_url":"https://github.com/sindresorhus/maxmin","homepage":null,"size":194,"stargazers_count":23,"watchers_count":23,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":0,"forks":4,"open_issues":0,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/maxmin/pulls/3"},"html":{"href":"https://github.com/sindresorhus/maxmin/pull/3"},"issue":{"href":"https://api.github.com/repos/sindresorhus/maxmin/issues/3"},"comments":{"href":"https://api.github.com/repos/sindresorhus/maxmin/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/maxmin/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/maxmin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/maxmin/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/maxmin/statuses/b9357e67d27b1d9eca8c374c5788e509c241c8b2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":3,"review_comments":9,"commits":1,"additions":18,"deletions":8,"changed_files":3}}