{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/arloliu/copy-node-modules/pulls/10","id":192965527,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyOTY1NTI3","html_url":"https://github.com/arloliu/copy-node-modules/pull/10","diff_url":"https://github.com/arloliu/copy-node-modules/pull/10.diff","patch_url":"https://github.com/arloliu/copy-node-modules/pull/10.patch","issue_url":"https://api.github.com/repos/arloliu/copy-node-modules/issues/10","number":10,"state":"open","locked":false,"title":"Concurrency option is added","user":{"login":"ezze","id":665479,"node_id":"MDQ6VXNlcjY2NTQ3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/665479?v=4","gravatar_id":"","url":"https://api.github.com/users/ezze","html_url":"https://github.com/ezze","followers_url":"https://api.github.com/users/ezze/followers","following_url":"https://api.github.com/users/ezze/following{/other_user}","gists_url":"https://api.github.com/users/ezze/gists{/gist_id}","starred_url":"https://api.github.com/users/ezze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezze/subscriptions","organizations_url":"https://api.github.com/users/ezze/orgs","repos_url":"https://api.github.com/users/ezze/repos","events_url":"https://api.github.com/users/ezze/events{/privacy}","received_events_url":"https://api.github.com/users/ezze/received_events","type":"User","site_admin":false},"body":"A new option `concurrency` is added. This one allows to restrict a number of concurrent `copyModules` calls and avoid [Error: EMFILE, too many files open](#9).\r\n\r\nUse it the following way:\r\n\r\n```javascript\r\ncopyNodeModules(srcDir, dstDir, {\r\n    concurrency: 4\r\n}, callback(err, results) {...}); \r\n```\r\n\r\nAnd in CLI:\r\n\r\n```\r\ncopy-node-modules src dst --concurrency 4\r\n```\r\n\r\nAlso [yargs](https://github.com/yargs/yargs) is added for better and easy CLI arguments parsing.","created_at":"2018-06-06T10:17:02Z","updated_at":"2018-06-06T10:17:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/arloliu/copy-node-modules/pulls/10/commits","review_comments_url":"https://api.github.com/repos/arloliu/copy-node-modules/pulls/10/comments","review_comment_url":"https://api.github.com/repos/arloliu/copy-node-modules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arloliu/copy-node-modules/issues/10/comments","statuses_url":"https://api.github.com/repos/arloliu/copy-node-modules/statuses/c50d0ce9f97bb737d059fb324ea6613ced17a5db","head":{"label":"ezze:fix-emfile-sync","ref":"fix-emfile-sync","sha":"c50d0ce9f97bb737d059fb324ea6613ced17a5db","user":{"login":"ezze","id":665479,"node_id":"MDQ6VXNlcjY2NTQ3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/665479?v=4","gravatar_id":"","url":"https://api.github.com/users/ezze","html_url":"https://github.com/ezze","followers_url":"https://api.github.com/users/ezze/followers","following_url":"https://api.github.com/users/ezze/following{/other_user}","gists_url":"https://api.github.com/users/ezze/gists{/gist_id}","starred_url":"https://api.github.com/users/ezze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezze/subscriptions","organizations_url":"https://api.github.com/users/ezze/orgs","repos_url":"https://api.github.com/users/ezze/repos","events_url":"https://api.github.com/users/ezze/events{/privacy}","received_events_url":"https://api.github.com/users/ezze/received_events","type":"User","site_admin":false},"repo":{"id":136287183,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYyODcxODM=","name":"copy-node-modules","full_name":"ezze/copy-node-modules","owner":{"login":"ezze","id":665479,"node_id":"MDQ6VXNlcjY2NTQ3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/665479?v=4","gravatar_id":"","url":"https://api.github.com/users/ezze","html_url":"https://github.com/ezze","followers_url":"https://api.github.com/users/ezze/followers","following_url":"https://api.github.com/users/ezze/following{/other_user}","gists_url":"https://api.github.com/users/ezze/gists{/gist_id}","starred_url":"https://api.github.com/users/ezze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezze/subscriptions","organizations_url":"https://api.github.com/users/ezze/orgs","repos_url":"https://api.github.com/users/ezze/repos","events_url":"https://api.github.com/users/ezze/events{/privacy}","received_events_url":"https://api.github.com/users/ezze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ezze/copy-node-modules","description":"Fast deploy Node.js modules from local source folder to distination folder","fork":true,"url":"https://api.github.com/repos/ezze/copy-node-modules","forks_url":"https://api.github.com/repos/ezze/copy-node-modules/forks","keys_url":"https://api.github.com/repos/ezze/copy-node-modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezze/copy-node-modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezze/copy-node-modules/teams","hooks_url":"https://api.github.com/repos/ezze/copy-node-modules/hooks","issue_events_url":"https://api.github.com/repos/ezze/copy-node-modules/issues/events{/number}","events_url":"https://api.github.com/repos/ezze/copy-node-modules/events","assignees_url":"https://api.github.com/repos/ezze/copy-node-modules/assignees{/user}","branches_url":"https://api.github.com/repos/ezze/copy-node-modules/branches{/branch}","tags_url":"https://api.github.com/repos/ezze/copy-node-modules/tags","blobs_url":"https://api.github.com/repos/ezze/copy-node-modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezze/copy-node-modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezze/copy-node-modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezze/copy-node-modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezze/copy-node-modules/statuses/{sha}","languages_url":"https://api.github.com/repos/ezze/copy-node-modules/languages","stargazers_url":"https://api.github.com/repos/ezze/copy-node-modules/stargazers","contributors_url":"https://api.github.com/repos/ezze/copy-node-modules/contributors","subscribers_url":"https://api.github.com/repos/ezze/copy-node-modules/subscribers","subscription_url":"https://api.github.com/repos/ezze/copy-node-modules/subscription","commits_url":"https://api.github.com/repos/ezze/copy-node-modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezze/copy-node-modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezze/copy-node-modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezze/copy-node-modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezze/copy-node-modules/contents/{+path}","compare_url":"https://api.github.com/repos/ezze/copy-node-modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezze/copy-node-modules/merges","archive_url":"https://api.github.com/repos/ezze/copy-node-modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezze/copy-node-modules/downloads","issues_url":"https://api.github.com/repos/ezze/copy-node-modules/issues{/number}","pulls_url":"https://api.github.com/repos/ezze/copy-node-modules/pulls{/number}","milestones_url":"https://api.github.com/repos/ezze/copy-node-modules/milestones{/number}","notifications_url":"https://api.github.com/repos/ezze/copy-node-modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezze/copy-node-modules/labels{/name}","releases_url":"https://api.github.com/repos/ezze/copy-node-modules/releases{/id}","deployments_url":"https://api.github.com/repos/ezze/copy-node-modules/deployments","created_at":"2018-06-06T07:05:02Z","updated_at":"2018-06-06T07:05:03Z","pushed_at":"2018-06-06T10:07:25Z","git_url":"git://github.com/ezze/copy-node-modules.git","ssh_url":"git@github.com:ezze/copy-node-modules.git","clone_url":"https://github.com/ezze/copy-node-modules.git","svn_url":"https://github.com/ezze/copy-node-modules","homepage":"","size":23,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"arloliu:master","ref":"master","sha":"220bf369a011a7e025c46c42075507f182ac8366","user":{"login":"arloliu","id":1687357,"node_id":"MDQ6VXNlcjE2ODczNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1687357?v=4","gravatar_id":"","url":"https://api.github.com/users/arloliu","html_url":"https://github.com/arloliu","followers_url":"https://api.github.com/users/arloliu/followers","following_url":"https://api.github.com/users/arloliu/following{/other_user}","gists_url":"https://api.github.com/users/arloliu/gists{/gist_id}","starred_url":"https://api.github.com/users/arloliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arloliu/subscriptions","organizations_url":"https://api.github.com/users/arloliu/orgs","repos_url":"https://api.github.com/users/arloliu/repos","events_url":"https://api.github.com/users/arloliu/events{/privacy}","received_events_url":"https://api.github.com/users/arloliu/received_events","type":"User","site_admin":false},"repo":{"id":58573954,"node_id":"MDEwOlJlcG9zaXRvcnk1ODU3Mzk1NA==","name":"copy-node-modules","full_name":"arloliu/copy-node-modules","owner":{"login":"arloliu","id":1687357,"node_id":"MDQ6VXNlcjE2ODczNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1687357?v=4","gravatar_id":"","url":"https://api.github.com/users/arloliu","html_url":"https://github.com/arloliu","followers_url":"https://api.github.com/users/arloliu/followers","following_url":"https://api.github.com/users/arloliu/following{/other_user}","gists_url":"https://api.github.com/users/arloliu/gists{/gist_id}","starred_url":"https://api.github.com/users/arloliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arloliu/subscriptions","organizations_url":"https://api.github.com/users/arloliu/orgs","repos_url":"https://api.github.com/users/arloliu/repos","events_url":"https://api.github.com/users/arloliu/events{/privacy}","received_events_url":"https://api.github.com/users/arloliu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arloliu/copy-node-modules","description":"Fast deploy Node.js modules from local source folder to distination folder","fork":false,"url":"https://api.github.com/repos/arloliu/copy-node-modules","forks_url":"https://api.github.com/repos/arloliu/copy-node-modules/forks","keys_url":"https://api.github.com/repos/arloliu/copy-node-modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arloliu/copy-node-modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arloliu/copy-node-modules/teams","hooks_url":"https://api.github.com/repos/arloliu/copy-node-modules/hooks","issue_events_url":"https://api.github.com/repos/arloliu/copy-node-modules/issues/events{/number}","events_url":"https://api.github.com/repos/arloliu/copy-node-modules/events","assignees_url":"https://api.github.com/repos/arloliu/copy-node-modules/assignees{/user}","branches_url":"https://api.github.com/repos/arloliu/copy-node-modules/branches{/branch}","tags_url":"https://api.github.com/repos/arloliu/copy-node-modules/tags","blobs_url":"https://api.github.com/repos/arloliu/copy-node-modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arloliu/copy-node-modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arloliu/copy-node-modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/arloliu/copy-node-modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arloliu/copy-node-modules/statuses/{sha}","languages_url":"https://api.github.com/repos/arloliu/copy-node-modules/languages","stargazers_url":"https://api.github.com/repos/arloliu/copy-node-modules/stargazers","contributors_url":"https://api.github.com/repos/arloliu/copy-node-modules/contributors","subscribers_url":"https://api.github.com/repos/arloliu/copy-node-modules/subscribers","subscription_url":"https://api.github.com/repos/arloliu/copy-node-modules/subscription","commits_url":"https://api.github.com/repos/arloliu/copy-node-modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/arloliu/copy-node-modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/arloliu/copy-node-modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/arloliu/copy-node-modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/arloliu/copy-node-modules/contents/{+path}","compare_url":"https://api.github.com/repos/arloliu/copy-node-modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arloliu/copy-node-modules/merges","archive_url":"https://api.github.com/repos/arloliu/copy-node-modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arloliu/copy-node-modules/downloads","issues_url":"https://api.github.com/repos/arloliu/copy-node-modules/issues{/number}","pulls_url":"https://api.github.com/repos/arloliu/copy-node-modules/pulls{/number}","milestones_url":"https://api.github.com/repos/arloliu/copy-node-modules/milestones{/number}","notifications_url":"https://api.github.com/repos/arloliu/copy-node-modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arloliu/copy-node-modules/labels{/name}","releases_url":"https://api.github.com/repos/arloliu/copy-node-modules/releases{/id}","deployments_url":"https://api.github.com/repos/arloliu/copy-node-modules/deployments","created_at":"2016-05-11T19:20:53Z","updated_at":"2018-05-08T17:50:52Z","pushed_at":"2018-03-16T05:21:16Z","git_url":"git://github.com/arloliu/copy-node-modules.git","ssh_url":"git@github.com:arloliu/copy-node-modules.git","clone_url":"https://github.com/arloliu/copy-node-modules.git","svn_url":"https://github.com/arloliu/copy-node-modules","homepage":"","size":27,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":10,"open_issues":5,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arloliu/copy-node-modules/pulls/10"},"html":{"href":"https://github.com/arloliu/copy-node-modules/pull/10"},"issue":{"href":"https://api.github.com/repos/arloliu/copy-node-modules/issues/10"},"comments":{"href":"https://api.github.com/repos/arloliu/copy-node-modules/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/arloliu/copy-node-modules/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/arloliu/copy-node-modules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arloliu/copy-node-modules/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/arloliu/copy-node-modules/statuses/c50d0ce9f97bb737d059fb324ea6613ced17a5db"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":345,"deletions":55,"changed_files":6}}
{"actor":{"display_login":"ezze"}}