{"library":"ts2c","type":"library","category":null,"description":"ts2c transpiles JavaScript/TypeScript (ES3 subset) to readable C89 code for low-power microcontrollers (ESP32, ESP8266, AVR). Version 3.0.0 is under active development, supporting ~70% of ES3 (95% statements/expressions, 17% built-in objects). All numbers are int16_t; no floats, big numbers, prototype, eval, Date, or Math. Output is minimal, self-contained C with no runtime overhead. Different from JerryScript/Espruino by compiling to native C rather than interpreting, reducing memory and battery usage.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install ts2c","imports":["import { transpile } from 'ts2c'","const { transpile } = require('ts2c')","<script src=\"ts2c.bundle.js\"></script>\nconst cCode = ts2c.transpile(...)"]},{"cmd":"yarn add ts2c","imports":[]},{"cmd":"pnpm add ts2c","imports":[]}],"homepage":"https://ts2c.io","github":"https://github.com/andrei-markeev/ts2c","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts2c","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}