{"id":25789,"library":"jinx-compiler","title":"jinx-compiler","description":"Node.js module that compiles .jinx files into ActionScript 3 (.as) for use with Adobe Flash SWF/SWC. Current stable version is 2.1.2. Release cadence is irregular; last update was in 2016. Key differentiator: it is a specialized compiler for the .jinx language, which is a higher-level syntax for Flash development. No alternatives exist specifically for .jinx compilation.","status":"deprecated","version":"2.1.2","language":"javascript","source_language":"en","source_url":"https://github.com/webcaetano/jinx-compiler","tags":["javascript","jinx","jinx-compiler","as3","swf","swc","npm","package","flash"],"install":[{"cmd":"npm install jinx-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add jinx-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add jinx-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package exports a default function. Using require() works but is not recommended for ESM projects.","wrong":"const jinxCompiler = require('jinx-compiler')","symbol":"default","correct":"import jinxCompiler from 'jinx-compiler'"},{"note":"The default export is a function; named import fails. Use default import.","wrong":"import { jinxCompiler } from 'jinx-compiler'","symbol":"jinxCompiler","correct":"import jinx from 'jinx-compiler'"},{"note":"In CommonJS, the default export is accessed via require().default. In ESM, just use default import.","wrong":"const compile = require('jinx-compiler').default","symbol":"compile (default)","correct":"import compile from 'jinx-compiler'"}],"quickstart":{"code":"import fs from 'fs';\nimport compile from 'jinx-compiler';\n\nconst jinxContent = fs.readFileSync('test/app/flash/init.jinx', 'utf8');\nconst as3Code = compile(jinxContent);\nconsole.log(as3Code);","lang":"javascript","description":"Reads a .jinx file and compiles it to ActionScript 3 code."},"warnings":[{"fix":"Migrate to modern web technologies (HTML5, WebGL) or use alternative frameworks.","message":"Package is deprecated; Flash/Adobe technologies are discontinued.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Check documentation for version 2.0.0 breaking changes.","message":"Major version 2.0.0 changed the API from synchronous to asynchronous? Verify.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Create a declaration file: declare module 'jinx-compiler' { export default function(content: string): string; }","message":"Package does not ship TypeScript definitions. Types must be created manually.","severity":"gotcha","affected_versions":"<=2.1.2"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use const jinxCompiler = require('jinx-compiler').default; or switch to ESM import.","cause":"Trying to call require('jinx-compiler') as a function but it's a default export in CommonJS.","error":"TypeError: jinxCompiler is not a function"},{"fix":"Run npm install jinx-compiler --save","cause":"Package not installed or missing dependencies if using bundler.","error":"Module not found: Can't resolve 'jinx-compiler'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}