{"library":"typescript-compiler","type":"library","category":null,"description":"A JavaScript library that wraps the TypeScript command-line compiler, providing programmatic API to compile TypeScript files and strings. The library exposes compile(), compileString(), and compileStrings() methods, allowing developers to integrate TypeScript compilation into Node.js workflows without shelling out to tsc. It supports passing compiler options, error callbacks, and can handle multiple source files with reference tags. Version 1.4.1-2 is the latest release, updated sporadically; no active development observed since 2016. Unlike ts-node or ts-jest, this wrapper is minimal and does not include a resolver, so all imports must be fully resolved.","language":"javascript","status":"abandoned","version":"1.4.1-2","tags":["javascript","TypeScript","compiler","language","api"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typescript-compiler","imports":["const tsc = require('typescript-compiler')","tsc.compile(['file.ts'], ['--out', 'out.js'])","var js = tsc.compileString('class A {}')"]},{"cmd":"yarn add typescript-compiler","imports":[]},{"cmd":"pnpm add typescript-compiler","imports":[]}],"homepage":null,"github":"https://github.com/theblacksmith/typescript-compiler","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typescript-compiler","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/typescript-compiler/compatibility"}}