{"action":"created","issue":{"url":"https://api.github.com/repos/substack/node-browserify/issues/1610","repository_url":"https://api.github.com/repos/substack/node-browserify","labels_url":"https://api.github.com/repos/substack/node-browserify/issues/1610/labels{/name}","comments_url":"https://api.github.com/repos/substack/node-browserify/issues/1610/comments","events_url":"https://api.github.com/repos/substack/node-browserify/issues/1610/events","html_url":"https://github.com/substack/node-browserify/issues/1610","id":170067596,"number":1610,"title":"How to call modules after converted by browserify?","user":{"login":"lhf552004","id":10030850,"avatar_url":"https://avatars.githubusercontent.com/u/10030850?v=3","gravatar_id":"","url":"https://api.github.com/users/lhf552004","html_url":"https://github.com/lhf552004","followers_url":"https://api.github.com/users/lhf552004/followers","following_url":"https://api.github.com/users/lhf552004/following{/other_user}","gists_url":"https://api.github.com/users/lhf552004/gists{/gist_id}","starred_url":"https://api.github.com/users/lhf552004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhf552004/subscriptions","organizations_url":"https://api.github.com/users/lhf552004/orgs","repos_url":"https://api.github.com/users/lhf552004/repos","events_url":"https://api.github.com/users/lhf552004/events{/privacy}","received_events_url":"https://api.github.com/users/lhf552004/received_events","type":"User","site_admin":false},"labels":[{"id":203859297,"url":"https://api.github.com/repos/substack/node-browserify/labels/support","name":"support","color":"FF91AF","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-09T02:22:25Z","updated_at":"2016-10-31T18:54:45Z","closed_at":"2016-10-31T18:54:45Z","body":"Dear @substack , sorry to ask this foolish question, but I'm a new one for browserify, I 'm confused for the question for a long time. \nHere is my test.js  which run at server normally\n\n```\nvar init = function() {\nconsole.log(\"here2\");\n}\nexports.init = init;\n```\n\nNow I want use this module at front end, so I converted it with browserify:\n`browserify test.js > bundle.js`\n\nThen I add it to my html, but I can't not call my init function.\n\n```\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<title>Title</title>\n\n<script src=\"bundle.js\"></script>\n<script>\n    init();\n</script>\n</head>\n<body>\n\n</body>\n</html>\n```\n\nI found similar question on google, but the answser change the module. This is not I want. I want my init function.\nhttp://stackoverflow.com/questions/36510404/cannot-call-modules-function-after-browserify/\nPlease help me who is confused about browserify,\n"},"comment":{"url":"https://api.github.com/repos/substack/node-browserify/issues/comments/257386291","html_url":"https://github.com/substack/node-browserify/issues/1610#issuecomment-257386291","issue_url":"https://api.github.com/repos/substack/node-browserify/issues/1610","id":257386291,"user":{"login":"terinjokes","id":273509,"avatar_url":"https://avatars.githubusercontent.com/u/273509?v=3","gravatar_id":"","url":"https://api.github.com/users/terinjokes","html_url":"https://github.com/terinjokes","followers_url":"https://api.github.com/users/terinjokes/followers","following_url":"https://api.github.com/users/terinjokes/following{/other_user}","gists_url":"https://api.github.com/users/terinjokes/gists{/gist_id}","starred_url":"https://api.github.com/users/terinjokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terinjokes/subscriptions","organizations_url":"https://api.github.com/users/terinjokes/orgs","repos_url":"https://api.github.com/users/terinjokes/repos","events_url":"https://api.github.com/users/terinjokes/events{/privacy}","received_events_url":"https://api.github.com/users/terinjokes/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T18:54:45Z","updated_at":"2016-10-31T18:54:45Z","body":"You may also be interested in the \"--standalone\" flag that generates a UMD bundle with a name that you specify."}}
{"actor":{"display_login":"terinjokes"}}