{"action":"created","issue":{"url":"https://api.github.com/repos/lgarron/clipboard-polyfill/issues/77","repository_url":"https://api.github.com/repos/lgarron/clipboard-polyfill","labels_url":"https://api.github.com/repos/lgarron/clipboard-polyfill/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/lgarron/clipboard-polyfill/issues/77/comments","events_url":"https://api.github.com/repos/lgarron/clipboard-polyfill/issues/77/events","html_url":"https://github.com/lgarron/clipboard-polyfill/issues/77","id":298301430,"number":77,"title":"Clarify usage","user":{"login":"the-spyke","id":3014095,"avatar_url":"https://avatars3.githubusercontent.com/u/3014095?v=4","gravatar_id":"","url":"https://api.github.com/users/the-spyke","html_url":"https://github.com/the-spyke","followers_url":"https://api.github.com/users/the-spyke/followers","following_url":"https://api.github.com/users/the-spyke/following{/other_user}","gists_url":"https://api.github.com/users/the-spyke/gists{/gist_id}","starred_url":"https://api.github.com/users/the-spyke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-spyke/subscriptions","organizations_url":"https://api.github.com/users/the-spyke/orgs","repos_url":"https://api.github.com/users/the-spyke/repos","events_url":"https://api.github.com/users/the-spyke/events{/privacy}","received_events_url":"https://api.github.com/users/the-spyke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-19T14:47:48Z","updated_at":"2018-03-13T03:21:30Z","closed_at":null,"author_association":"NONE","body":"The package is named as a `polyfill`, but it does not actually polyfill global objects. Please update the `Usage` section to something like this:\r\n\r\nGet the source using one of the following:\r\n\r\nIn a browser:\r\n- Download `build/clipboard-polyfill.js` and include it using a `<script>` tag.\r\n\r\nIn a bundler like `Browserify/Webpack`:\r\n- Run `npm install clipboard-polyfill` command.\r\n- Import the package:\r\n   ```javascript\r\n   // Common JS\r\n   const clipboard = require('clipboard-polyfill');\r\n\r\n   // ES Modules\r\n   import clipboard from 'clipboard-polyfill';\r\n   ```"},"comment":{"url":"https://api.github.com/repos/lgarron/clipboard-polyfill/issues/comments/372533834","html_url":"https://github.com/lgarron/clipboard-polyfill/issues/77#issuecomment-372533834","issue_url":"https://api.github.com/repos/lgarron/clipboard-polyfill/issues/77","id":372533834,"user":{"login":"Mocha--","id":8860999,"avatar_url":"https://avatars2.githubusercontent.com/u/8860999?v=4","gravatar_id":"","url":"https://api.github.com/users/Mocha--","html_url":"https://github.com/Mocha--","followers_url":"https://api.github.com/users/Mocha--/followers","following_url":"https://api.github.com/users/Mocha--/following{/other_user}","gists_url":"https://api.github.com/users/Mocha--/gists{/gist_id}","starred_url":"https://api.github.com/users/Mocha--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mocha--/subscriptions","organizations_url":"https://api.github.com/users/Mocha--/orgs","repos_url":"https://api.github.com/users/Mocha--/repos","events_url":"https://api.github.com/users/Mocha--/events{/privacy}","received_events_url":"https://api.github.com/users/Mocha--/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T03:21:30Z","updated_at":"2018-03-13T03:21:30Z","author_association":"NONE","body":"Hi,\r\n\r\nCould you please provide a typescript import demo?\r\n\r\nI tried to import clipboard from 'clipboard-polyfill' in its version 2.4.6, by which the imported clipboard turned out to be undefined."}}
{"actor":{"display_login":"Mocha--"}}