Registry / devops / ts2c-target-esp-idf

ts2c-target-esp-idf

JSON →
library0.0.1jsnpmunverified

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.

npm install ts2c-target-esp-idf
INSTALL
IMPORT
SIG · TS2C-TARGET-ESP-ID
T
ts2c-target-esp-idf
devopsjavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import ts2cEspIdf from 'ts2c-target-esp-idf'
const ts2cEspIdf = require('ts2c-target-esp-idf')
The package likely exports a default target configuration object for TS2C.
Target
import { Target } from 'ts2c-target-esp-idf'
import { ESPIDFTarget } from 'ts2c-target-esp-idf'
If types are provided, the main type export might be named 'Target'.
espIdfConfig
import { espIdfConfig } from 'ts2c-target-esp-idf'
May export a configuration object for ESP-IDF specific settings.

Basic usage of ts2c-target-esp-idf to transpile TypeScript to C for ESP-IDF environment.

import ts2c from 'ts2c'; import espIdfTarget from 'ts2c-target-esp-idf'; const code = ts2c.transpile({ target: espIdfTarget, input: 'path/to/typescript.ts', output: 'path/to/output.c' }); console.log('Transpiled successfully');
ts2c --version
Debug
Known issues
breakingVersion 0.0.1 is highly experimental; APIs are not stable and will change without notice.
fix
Pin to exact version and test upgrades carefully.
affects: >=0.0.1
deprecatedNo known deprecated features yet due to early stage.
fix
N/A
affects: 0.0.1
gotchaPackage may not have a README, making setup instructions unclear. Rely on ts2c core documentation.
fix
Refer to ts2c documentation and source code for target usage.
affects: 0.0.1
Errors
Common errors & fixes
Cannot find module 'ts2c-target-esp-idf'
Package not installed or not in node_modules
fix
Run `npm install ts2c-target-esp-idf`
Target 'esp-idf' is not recognized
Incorrect import or target usage
fix
Ensure you import the target and pass it as an object to ts2c.transpile()
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies
ts2crequiredCore transpiler required to use this target
Agent activity
2 hits · last 30 days
node
2
Resources
ts2c-target-esp-idf — npm install ts2c-target-esp-idf · libregistry