cjstoesm
ts-c-compiler
cjstoesm | ts-c-compiler | |
---|---|---|
1 | 4 | |
374 | 315 | |
- | - | |
0.0 | 9.3 | |
5 months ago | 8 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cjstoesm
-
How to use ESM on the web and in Node.js
There are tools to help make migrating code from CommonJS to ES Modules easy. One of the most popular tools is cjstoesm, a command line tool that automatically transforms CommonJS code in Node to its ESM equivalent. Almost all CommonJS code is transformed. However, there are some things that are not transformed. The most notable is the __dirname. __dirname is not part of Node.js, but it is one thing that Node does not suppport in "ESM mode". Luckily, there are replacements. A simple way to polyfill __dirname is to do this:
ts-c-compiler
- Ts-C-compiler: Multipass C Compiler, Assembler and x86 emulator in TypeScript
- 16bit Real-mode C compiler written in TypeScript
- Multipass C Compiler, Assembler and x86 emulator written in TypeScript
-
Tiny-C Compiler
Recently I'm working on toy C compiler and Assembler in TypeScript[1] and I can confirm that the amount of work that have to be done to compile and print simple Hello World is astronomically huge.
[1] https://github.com/Mati365/ts-c-compiler
What are some alternatives?
pkgroll - 📦 Zero-config package bundler for Node.js + TypeScript
brs-engine - BrightScript Simulation Engine - Run Roku apps on Browsers and Node.js
ctix - CLI to generate barrel file for webpack, rollup entrypoint
regal86 - Register Allocator for 8086
node-win32-api - win32 api
decomp.me - Collaborative decompilation and reverse engineering website
pseudo-shuffle - (FE1 FPE) Make the index look like it is shuffled according to the range so that it is not conflicted without the actual shuffle. (Support Node & Browser)
nests - NES Emulator Written in TypeScript/React
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
OpenCircuits - A free, open source, online digital circuit/logic designer.
tsx - ⚡️ TypeScript Execute: Node.js enhanced to run TypeScript & ESM
x86-kernel - A hobby kernel developed from scratch using i8086 assembly