{"id":27479,"library":"tstosc","title":"tstosc","description":"A transpiler converting TypeScript to SuperCollider's SCLang. Version 0.0.2, experimental/unstable, released 2025-01-15 (first version). Differentiators: enables using TypeScript syntax/type-checking for SuperCollider music/audio programming, writes classes to SuperCollider User Extension folder. Built with Node.js, ESM-only, no peer dependencies.","status":"active","version":"0.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/OzelotVanilla/TypeScript_to_SuperCollider","tags":["javascript","supercollider","transpiler","typescript","ts","sclang"],"install":[{"cmd":"npm install tstosc","lang":"bash","label":"npm"},{"cmd":"yarn add tstosc","lang":"bash","label":"yarn"},{"cmd":"pnpm add tstosc","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only, named export may change. Check README for CLI usage.","wrong":"const tstosc = require('tstosc')","symbol":"tstosc","correct":"import tstosc from 'tstosc'"}],"quickstart":{"code":"// Install globally\nnpm install -g tstosc\n\n// Transpile a TypeScript file (e.g., test.ts)\ntstosc ./test.ts\n// Converts ./test.ts to ./test.sc\n\n// Example test.ts content:\n// const freq = 440;\n// const duration = 0.5;\n// Synth('sine', { freq, gate: 1, out: 0 });\n\n// After running tstosc, check test.sc:\n// cat test.sc\n","lang":"typescript","description":"Shows global install and basic CLI transpilation from TypeScript to SuperCollider SCLang."},"warnings":[{"fix":"Always review generated .sc files before use in SuperCollider.","message":"Package is highly experimental (v0.0.2). May produce unreliable or incorrect SCLang code.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Back up your SuperCollider extensions or run in a test environment.","message":"Class definitions are written to SuperCollider's User Extension folder, potentially overwriting existing files.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure global installation: npm install -g tstosc","cause":"Package not installed or not in PATH when using CLI.","error":"Error: Cannot find module 'tstosc'"},{"fix":"Use the .sc file in SuperCollider, not Node.","cause":"Running transpiled output with Node.js instead of SuperCollider.","error":"SyntaxError: Unexpected token 'export'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}