{"action":"created","issue":{"url":"https://api.github.com/repos/padolsey/findAndReplaceDOMText/issues/28","labels_url":"https://api.github.com/repos/padolsey/findAndReplaceDOMText/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/padolsey/findAndReplaceDOMText/issues/28/comments","events_url":"https://api.github.com/repos/padolsey/findAndReplaceDOMText/issues/28/events","html_url":"https://github.com/padolsey/findAndReplaceDOMText/issues/28","id":59062090,"number":28,"title":"Publish as NPM package","user":{"login":"mourner","id":25395,"avatar_url":"https://avatars.githubusercontent.com/u/25395?v=3","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"padolsey","id":59852,"avatar_url":"https://avatars.githubusercontent.com/u/59852?v=3","gravatar_id":"","url":"https://api.github.com/users/padolsey","html_url":"https://github.com/padolsey","followers_url":"https://api.github.com/users/padolsey/followers","following_url":"https://api.github.com/users/padolsey/following{/other_user}","gists_url":"https://api.github.com/users/padolsey/gists{/gist_id}","starred_url":"https://api.github.com/users/padolsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/padolsey/subscriptions","organizations_url":"https://api.github.com/users/padolsey/orgs","repos_url":"https://api.github.com/users/padolsey/repos","events_url":"https://api.github.com/users/padolsey/events{/privacy}","received_events_url":"https://api.github.com/users/padolsey/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-02-26T11:59:33Z","updated_at":"2015-04-28T11:52:53Z","closed_at":"2015-04-28T11:23:36Z","body":"NPM is becoming the de-facto standard repository of JS modules, both browser and server. So it would be nice to have this published there."},"comment":{"url":"https://api.github.com/repos/padolsey/findAndReplaceDOMText/issues/comments/97033943","html_url":"https://github.com/padolsey/findAndReplaceDOMText/issues/28#issuecomment-97033943","issue_url":"https://api.github.com/repos/padolsey/findAndReplaceDOMText/issues/28","id":97033943,"user":{"login":"badsyntax","id":102141,"avatar_url":"https://avatars.githubusercontent.com/u/102141?v=3","gravatar_id":"","url":"https://api.github.com/users/badsyntax","html_url":"https://github.com/badsyntax","followers_url":"https://api.github.com/users/badsyntax/followers","following_url":"https://api.github.com/users/badsyntax/following{/other_user}","gists_url":"https://api.github.com/users/badsyntax/gists{/gist_id}","starred_url":"https://api.github.com/users/badsyntax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badsyntax/subscriptions","organizations_url":"https://api.github.com/users/badsyntax/orgs","repos_url":"https://api.github.com/users/badsyntax/repos","events_url":"https://api.github.com/users/badsyntax/events{/privacy}","received_events_url":"https://api.github.com/users/badsyntax/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T11:52:53Z","updated_at":"2015-04-28T11:52:53Z","body":"Can I suggest something along the lines of... \r\n\r\n```js\r\n(function (root, factory) {\r\n\tif (typeof module === 'object' && module.exports) {\r\n\t\t// Node/CommonJS\r\n\t\tmodule.exports = factory();\r\n\t} else if (typeof define === 'function' && define.amd) {\r\n\t\t// AMD. Register as an anonymous module.\r\n\t\tdefine(factory);\r\n\t} else {\r\n\t\t// Browser globals\r\n\t\troot.findAndReplaceDOMText = factory();\r\n\t}\r\n}(this, function factory() {\r\n\r\n\tfunction exposed() {\r\n\t}\r\n\r\n\treturn exposed;\r\n}));\r\n```\r\n.. along with a change to `package.json` to specify main entrypoint."}}