{"action":"opened","issue":{"url":"https://api.github.com/repos/dylang/shortid/issues/44","labels_url":"https://api.github.com/repos/dylang/shortid/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/dylang/shortid/issues/44/comments","events_url":"https://api.github.com/repos/dylang/shortid/issues/44/events","html_url":"https://github.com/dylang/shortid/issues/44","id":104034128,"number":44,"title":"How to use shortid with brunch.io?","user":{"login":"ceremcem","id":6639874,"avatar_url":"https://avatars.githubusercontent.com/u/6639874?v=3","gravatar_id":"","url":"https://api.github.com/users/ceremcem","html_url":"https://github.com/ceremcem","followers_url":"https://api.github.com/users/ceremcem/followers","following_url":"https://api.github.com/users/ceremcem/following{/other_user}","gists_url":"https://api.github.com/users/ceremcem/gists{/gist_id}","starred_url":"https://api.github.com/users/ceremcem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceremcem/subscriptions","organizations_url":"https://api.github.com/users/ceremcem/orgs","repos_url":"https://api.github.com/users/ceremcem/repos","events_url":"https://api.github.com/users/ceremcem/events{/privacy}","received_events_url":"https://api.github.com/users/ceremcem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-31T11:19:10Z","updated_at":"2015-08-31T11:19:10Z","closed_at":null,"body":"I'm using Brunch.io and I'm trying to use shortid in client side. Since `shortid` claims that it's compatible with browserify, I tried many things including\r\n\r\n* Browserify the module with the following command:\r\n\r\n        browserify -r ./index.js:shortid > /project/vendor/shortid.js\r\n\r\n* and use it in the application code: \r\n\r\n        var shortid = require(\"shortid\"); \r\n\r\nWeb page is giving the following error: \r\n\r\n     TypeError: require.register is not a function\r\n     TypeError: loaderPath.indexOf is not a function"}}