cli-binary-load-typescript

1.0.4 • Public • Published

Loading TypeScript file from executable CLI

This is just a PoC evaluating how to dynamically load a TypeScript file from a executable Node.js binary. (Meant to be used on colyseus/colyseus#594)

This is highly based on @acro5piano's approach on kysely-migration-cli


Installation

npm install
npm run build

Usage

Execute providing the TypeScript file to load

./bin/bin.js ./testfile.ts

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    0
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i cli-binary-load-typescript

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

5.3 kB

Total Files

5

Last publish

Collaborators

  • endel