esm-ts-node-wrapper
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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 );

Readme

Keywords

none

Package Sidebar

Install

npm i esm-ts-node-wrapper

Weekly Downloads

1

Version

0.1.4

License

BSD-2-Clause

Unpacked Size

685 kB

Total Files

9

Last publish

Collaborators

  • segmentational