tsc-todo
v1.0.1
Published
A CLI tool to convert TypeScript compiler output into a Markdown todo list
Maintainers
Readme
tsc-todo
A CLI tool to convert TypeScript compiler output into a Markdown todo list.
Installation
Global Installation (Recommended)
npm install -g tsc-todoUse without installation
# Using npx
tsc --noEmit | npx tsc-todo
# Using bunx
tsc --noEmit | bunx tsc-todoUsage
Command Line Interface
# Output to console
tsc --noEmit | tsc-todo
# Save to file (creates tsc-todo-YYYY-MM-DD.md)
tsc --noEmit | tsc-todo --file
# Include stderr in the output
tsc --noEmit 2>&1 | tsc-todo
# Show help
tsc-todo --helpProgrammatic Usage (Optional)
If needed, you can also use the main function programmatically:
import { tscOutputToMarkdown } from 'tsc-todo';
const tscOutput = `
src/example.ts(10,5): error TS2322: Type 'string' is not assignable to type 'number'.
src/example.ts(15,10): error TS2339: Property 'foo' does not exist on type 'Bar'.
`;
const markdown = tscOutputToMarkdown(tscOutput);
console.log(markdown);Development
This project uses Bun as the runtime and package manager.
Prerequisites
- Bun >= 1.0.0
Setup
# Install dependencies
bun install
# Run tests
bun test
# Run tests in watch mode
bun test --watch
# Build the library
bun run build
# Run in development mode
bun run dev
# Lint code
bun run lint
# Format code
bun run formatBuilding
The build process creates both ESM and CommonJS outputs:
bun run buildThis will:
- Clean the
distdirectory - Bundle the code with Bun
- Generate TypeScript declaration files
Publishing
# Build and publish to npm
npm publishScripts
build- Build the library for productiondev- Run in development mode with file watchingtest- Run all teststest:watch- Run tests in watch modelint- Lint TypeScript fileslint:fix- Fix linting issues automaticallyformat- Format code with Prettier
License
MIT
