ObjJAcornCompiler is a tiny, fast JavaScript and Objective-J transpiler with a built-in C-like preprocessor, written in JavaScript. The current version is 1.0.0-10 (pre-release), built on an extended Acorn parser. It supports multiple ECMAScript versions (ECMA5, ECMA8, latest), loose mode, and various output options like AST generation and source maps. Key differentiators: it is the primary transpiler for the Cappuccino framework, targeting Objective-J 2.0 syntax; includes a preprocessor for macros and conditionals; and is available as an npm package. However, it cannot compile Objective-J code that depends on other files without the Objective-J runtime.
npm install objj-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpile JavaScript with preprocessor macros (e.g., #define) using the transpile function, showing macro expansion.
Pin to a specific version and test thoroughly.
Pass { module: true } to transpile instead of --module.Ensure noObjj is false if using preprocessor directives.
Declare superclasses in the same file or use the Objective-J runtime.
Run 'npm install objj-transpiler@1.0.0-10' and ensure node_modules is in require path.
Use 'loose: true' in options or ensure code is valid JavaScript/Objective-J.
Use 'import { transpile } from 'objj-transpiler'' instead of default import.No dependency data recorded yet.