0.1.4 • Published 2 years ago

esm-ts-node-wrapper v0.1.4

Weekly downloads
-
License
BSD-2-Clause
Repository
-
Last release
2 years ago

ESM TS Node Wrapper

The following module is a a subprocess spawner that Wraps an ESM packages and extends the runtime with CommonJS capabilities.

These capabilities include

  • Directory Imports
  • Implicit File Imports (Users don't have to specify *.js extension(s))

Please acknowledge that extending ESM with CommonJS functionality as it relates to the import system is not a catch-all, and esm-ts-node-wrapper should be used in very select contexts, and should not be used in any production workflows.

Usage

import { Handler } from "esm-ts-node-wrapper";

const $ = await Handler.initialize( "H3ll0 WOr1d" );
console.log( JSON.stringify( $, null, 4 ) );
process.exit( 0 );