try icon indicating copy to clipboard operation
try copied to clipboard

Load modules directly into context

Open BrunnerLivio opened this issue 5 years ago • 0 comments

As an example, when using try express it should automatically call in JS: const express = require('express') and in TypeScript: import * as express from 'expess'.

Therefore a developer can directly access the package as global variable.

For JS this is possible with

node --eval "const express = require('express')" -i

with TS this is currently not possible. PR has already been submitted TypeStrong/ts-node#894

BrunnerLivio avatar Oct 11 '19 08:10 BrunnerLivio