{"action":"created","issue":{"url":"https://api.github.com/repos/egoist/konan/issues/5","repository_url":"https://api.github.com/repos/egoist/konan","labels_url":"https://api.github.com/repos/egoist/konan/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/egoist/konan/issues/5/comments","events_url":"https://api.github.com/repos/egoist/konan/issues/5/events","html_url":"https://github.com/egoist/konan/issues/5","id":302234060,"number":5,"title":"Please, provide a more descriptive example in the Usage section.","user":{"login":"sabsaxo","id":32077240,"avatar_url":"https://avatars2.githubusercontent.com/u/32077240?v=4","gravatar_id":"","url":"https://api.github.com/users/sabsaxo","html_url":"https://github.com/sabsaxo","followers_url":"https://api.github.com/users/sabsaxo/followers","following_url":"https://api.github.com/users/sabsaxo/following{/other_user}","gists_url":"https://api.github.com/users/sabsaxo/gists{/gist_id}","starred_url":"https://api.github.com/users/sabsaxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabsaxo/subscriptions","organizations_url":"https://api.github.com/users/sabsaxo/orgs","repos_url":"https://api.github.com/users/sabsaxo/repos","events_url":"https://api.github.com/users/sabsaxo/events{/privacy}","received_events_url":"https://api.github.com/users/sabsaxo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-05T09:54:26Z","updated_at":"2018-03-05T10:15:24Z","closed_at":null,"author_association":"NONE","body":"It's not clear how to actually use this. The example strings are out of context, so it's hard to 'guess' what to actually pass to the module.\r\n\r\nCan it be used like this?:\r\n```\r\nlet result = konan( 'path/to/script_to_traverse.js' );\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/egoist/konan/issues/comments/370372344","html_url":"https://github.com/egoist/konan/issues/5#issuecomment-370372344","issue_url":"https://api.github.com/repos/egoist/konan/issues/5","id":370372344,"user":{"login":"egoist","id":8784712,"avatar_url":"https://avatars2.githubusercontent.com/u/8784712?v=4","gravatar_id":"","url":"https://api.github.com/users/egoist","html_url":"https://github.com/egoist","followers_url":"https://api.github.com/users/egoist/followers","following_url":"https://api.github.com/users/egoist/following{/other_user}","gists_url":"https://api.github.com/users/egoist/gists{/gist_id}","starred_url":"https://api.github.com/users/egoist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egoist/subscriptions","organizations_url":"https://api.github.com/users/egoist/orgs","repos_url":"https://api.github.com/users/egoist/repos","events_url":"https://api.github.com/users/egoist/events{/privacy}","received_events_url":"https://api.github.com/users/egoist/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T10:15:24Z","updated_at":"2018-03-05T10:15:24Z","author_association":"OWNER","body":"like I said, code or AST:\r\n\r\n```js\r\nconst code = `\r\nconsole.log('js code')\r\n`\r\n\r\nkonan(code)\r\n\r\n//--------------\r\n\r\nconst fs = require('fs')\r\nconst codeFromAFile = fs.readFileSync('./your/script', 'utf8')\r\nkonan(codeFromAFile)\r\n\r\n//--------------\r\n// If you already have an AST tree\r\nkonan(ast)\r\n```\r\n\r\nDoes this make sense to you?"}}
{"actor":{"display_login":"egoist"}}