Super-detype is a CLI tool (v2.2.2) that converts an entire TypeScript project to JavaScript by stripping type annotations and compiling with Babel. It handles Node.js, React, Next.js, Remix, and Vite projects, but not Vue or Svelte. Unlike file-by-file converters or copy-paste tools, it processes whole directories at once. It requires Node >=22 and is primarily used via npx or global install. Release cadence is sporadic. Ships bundled TypeScript types for its own API but the tool itself generates JS.
npm install super-detypeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts an entire TypeScript project at the given input path to a JavaScript project at the output path.
Use dynamic import() or ensure your project is ESM. Do not use require().
Use 'npx super-detype' or install the latest globally.
Wrap paths in double quotes and use forward slashes on Windows.
Always use a fresh output directory to avoid accidental data loss.
Use 'npx super-detype' or install globally with 'npm i -g super-detype'.
Use ESM import or use .default with require: const superDetype = require('super-detype').default