{"action":"created","issue":{"url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/52","repository_url":"https://api.github.com/repos/ncsoft/Unreal.js","labels_url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/52/comments","events_url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/52/events","html_url":"https://github.com/ncsoft/Unreal.js/issues/52","id":143930785,"number":52,"title":"How to actually get 'fs'?","user":{"login":"mflux","id":1041360,"avatar_url":"https://avatars.githubusercontent.com/u/1041360?v=3","gravatar_id":"","url":"https://api.github.com/users/mflux","html_url":"https://github.com/mflux","followers_url":"https://api.github.com/users/mflux/followers","following_url":"https://api.github.com/users/mflux/following{/other_user}","gists_url":"https://api.github.com/users/mflux/gists{/gist_id}","starred_url":"https://api.github.com/users/mflux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mflux/subscriptions","organizations_url":"https://api.github.com/users/mflux/orgs","repos_url":"https://api.github.com/users/mflux/repos","events_url":"https://api.github.com/users/mflux/events{/privacy}","received_events_url":"https://api.github.com/users/mflux/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-28T08:52:36Z","updated_at":"2016-03-28T10:43:27Z","closed_at":"2016-03-28T10:26:05Z","body":"Hey Nako\r\n\r\nAccording to https://github.com/ncsoft/Unreal.js/wiki/Working-with-node.js-modules\r\n\r\n\"Only small amount of functions are provided including timer functions(setTimeout, clearTimeout, ...), process.nextTick and fs.readFileSync\"\r\n\r\nHowever upon trying this...\r\n\r\n    Error: c:\\Users\\Flux\\Documents\\Unreal Projects\\CPCS\\Content\\Scripts\\game\\gamecore.js:1344: ReferenceError: readFileSync is not defined\r\n    Error: ReferenceError: readFileSync is not defined    \r\n\r\nMy code in question. This is transpiled by grunt-babel, not sure if that matters.\r\n\r\n    var fs = require('fs');\r\n    function load( filePath ){\r\n      return fs.readFileSync( filePath, 'utf8').split(/\\r?\\n/);\r\n    }\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/comments/202338501","html_url":"https://github.com/ncsoft/Unreal.js/issues/52#issuecomment-202338501","issue_url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/52","id":202338501,"user":{"login":"nakosung","id":2463571,"avatar_url":"https://avatars.githubusercontent.com/u/2463571?v=3","gravatar_id":"","url":"https://api.github.com/users/nakosung","html_url":"https://github.com/nakosung","followers_url":"https://api.github.com/users/nakosung/followers","following_url":"https://api.github.com/users/nakosung/following{/other_user}","gists_url":"https://api.github.com/users/nakosung/gists{/gist_id}","starred_url":"https://api.github.com/users/nakosung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakosung/subscriptions","organizations_url":"https://api.github.com/users/nakosung/orgs","repos_url":"https://api.github.com/users/nakosung/repos","events_url":"https://api.github.com/users/nakosung/events{/privacy}","received_events_url":"https://api.github.com/users/nakosung/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T10:43:27Z","updated_at":"2016-03-28T10:43:27Z","body":":+1"}}