try
try copied to clipboard
Load modules directly into context
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