{"library":"ts2nim","type":"library","category":null,"description":"A TypeScript to Nim transpiler that converts TypeScript source code (and JavaScript via TypeScript ESTree) into valid, pretty Nim code. The 0.0.31 release is currently in early development with limited semantic analysis; it focuses on syntax translation and basic type mapping (e.g., number→float, Array→seq, null→nil). The tool also generates wrapper code from .d.ts files using importcpp pragmas. Compared to alternatives like dts2nim, ts2nim directly translates full TypeScript sources rather than just type definitions. It is intended to expand Nim's JavaScript backend ecosystem by reusing existing TypeScript/JavaScript libraries. Note that the project does not resolve dependencies and requires manual post-translation adjustments.","language":"javascript","status":"active","version":"0.0.31","tags":["javascript","typescript","Nim","transpiler"],"last_verified":"Fri May 01","install":[{"cmd":"npm install ts2nim","imports":["import ts2nim from 'ts2nim'","import { cli } from 'ts2nim'","import type { TranspileOptions } from 'ts2nim'"]},{"cmd":"yarn add ts2nim","imports":[]},{"cmd":"pnpm add ts2nim","imports":[]}],"homepage":null,"github":"https://github.com/bung87/ts2nim","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts2nim","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}