{"action":"closed","issue":{"url":"https://api.github.com/repos/HerringtonDarkholme/typescript-repl/issues/3","labels_url":"https://api.github.com/repos/HerringtonDarkholme/typescript-repl/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/HerringtonDarkholme/typescript-repl/issues/3/comments","events_url":"https://api.github.com/repos/HerringtonDarkholme/typescript-repl/issues/3/events","html_url":"https://github.com/HerringtonDarkholme/typescript-repl/issues/3","id":97200364,"number":3,"title":"Import node modules","user":{"login":"johnjelinek","id":873610,"avatar_url":"https://avatars.githubusercontent.com/u/873610?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjelinek","html_url":"https://github.com/johnjelinek","followers_url":"https://api.github.com/users/johnjelinek/followers","following_url":"https://api.github.com/users/johnjelinek/following{/other_user}","gists_url":"https://api.github.com/users/johnjelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjelinek/subscriptions","organizations_url":"https://api.github.com/users/johnjelinek/orgs","repos_url":"https://api.github.com/users/johnjelinek/repos","events_url":"https://api.github.com/users/johnjelinek/events{/privacy}","received_events_url":"https://api.github.com/users/johnjelinek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-25T06:17:51Z","updated_at":"2015-07-25T14:50:05Z","closed_at":"2015-07-25T14:50:05Z","body":"I think `import { request, get } from \"https\"` should work, but I get:\r\n```\r\n> import { request, get } from \"https\";\r\nevalmachine.<anonymous>:1\r\nvar { request, get } from \"https\";\r\n    ^\r\nSyntaxError: Unexpected token {\r\n    at Object.exports.runInContext (vm.js:63:16)\r\n    at startEvaluate (/Users/jjelinek/.nvm/versions/node/v0.12.7/lib/node_modules/tsun/bin/tsun.js:369:25)\r\n    at replLoop (/Users/jjelinek/.nvm/versions/node/v0.12.7/lib/node_modules/tsun/bin/tsun.js:396:9)\r\n    at /Users/jjelinek/.nvm/versions/node/v0.12.7/lib/node_modules/tsun/bin/tsun.js:465:9\r\n    at Interface._onLine (readline.js:212:5)\r\n    at Interface._line (readline.js:553:8)\r\n    at Interface._ttyWrite (readline.js:830:14)\r\n    at ReadStream.onkeypress (readline.js:109:10)\r\n    at ReadStream.emit (events.js:110:17)\r\n    at readline.js:1175:14\r\n```\r\n\r\nI know the library is available, because I see output here:\r\n```\r\n> import \"https\"\r\n{ Server: { [Function: Server] super_: { [Function: Server] super_: [Object] } },\r\n  createServer: [Function],\r\n  globalAgent:\r\n   { domain: null,\r\n     _events: { free: [Function] },\r\n     _maxListeners: undefined,\r\n     defaultPort: 443,\r\n     protocol: 'https:',\r\n     options: { path: null },\r\n     requests: {},\r\n     sockets: {},\r\n     freeSockets: {},\r\n     keepAliveMsecs: 1000,\r\n     keepAlive: false,\r\n     maxSockets: Infinity,\r\n     maxFreeSockets: 256 },\r\n  Agent:\r\n   { [Function: Agent]\r\n     super_: { [Function: Agent] super_: [Object], defaultMaxSockets: Infinity } },\r\n  request: [Function],\r\n  get: [Function] }\r\n```"}}