{"id":26517,"library":"ts2c-target-esp-idf","title":"TS2C ESP-IDF Target","description":"A target module for the TS2C transpiler that enables converting TypeScript to C code for ESP-IDF (Espressif IoT Development Framework). As of version 0.0.1, it is a very early release with no known release cadence. Differentiates from other transpilation approaches by targeting embedded systems directly from TypeScript, but is in an experimental stage with limited documentation and likely breaking changes.","status":"active","version":"0.0.1","language":"javascript","source_language":"en","source_url":"git://github.com/andrei-markeev/ts2c-target-esp-idf","tags":["javascript","typescript"],"install":[{"cmd":"npm install ts2c-target-esp-idf","lang":"bash","label":"npm"},{"cmd":"yarn add ts2c-target-esp-idf","lang":"bash","label":"yarn"},{"cmd":"pnpm add ts2c-target-esp-idf","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core transpiler required to use this target","package":"ts2c","optional":false}],"imports":[{"note":"The package likely exports a default target configuration object for TS2C.","wrong":"const ts2cEspIdf = require('ts2c-target-esp-idf')","symbol":"default","correct":"import ts2cEspIdf from 'ts2c-target-esp-idf'"},{"note":"If types are provided, the main type export might be named 'Target'.","wrong":"import { ESPIDFTarget } from 'ts2c-target-esp-idf'","symbol":"Target","correct":"import { Target } from 'ts2c-target-esp-idf'"},{"note":"May export a configuration object for ESP-IDF specific settings.","wrong":"","symbol":"espIdfConfig","correct":"import { espIdfConfig } from 'ts2c-target-esp-idf'"}],"quickstart":{"code":"import ts2c from 'ts2c';\nimport espIdfTarget from 'ts2c-target-esp-idf';\n\nconst code = ts2c.transpile({\n  target: espIdfTarget,\n  input: 'path/to/typescript.ts',\n  output: 'path/to/output.c'\n});\n\nconsole.log('Transpiled successfully');","lang":"typescript","description":"Basic usage of ts2c-target-esp-idf to transpile TypeScript to C for ESP-IDF environment."},"warnings":[{"fix":"Pin to exact version and test upgrades carefully.","message":"Version 0.0.1 is highly experimental; APIs are not stable and will change without notice.","severity":"breaking","affected_versions":">=0.0.1"},{"fix":"N/A","message":"No known deprecated features yet due to early stage.","severity":"deprecated","affected_versions":"0.0.1"},{"fix":"Refer to ts2c documentation and source code for target usage.","message":"Package may not have a README, making setup instructions unclear. Rely on ts2c core documentation.","severity":"gotcha","affected_versions":"0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install ts2c-target-esp-idf`","cause":"Package not installed or not in node_modules","error":"Cannot find module 'ts2c-target-esp-idf'"},{"fix":"Ensure you import the target and pass it as an object to ts2c.transpile()","cause":"Incorrect import or target usage","error":"Target 'esp-idf' is not recognized"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}