code-block-writer is a JavaScript and TypeScript utility for programmatically generating formatted code text. It helps you manage indentation, newlines, spaces, and quoting, and provides helpers like block and inlineBlock to wrap generated content in braces.
Project status
- The source appears to be in maintenance mode or effectively dormant, with its last upstream push on 2024-10-05, and no evidenced updates since then as of 2026-06-09.
- Updates in 2024 were spaced out (at least 13.0.1 on 2024-03-01, 13.0.2 on 2024-07-26, and 13.0.3 on 2024-10-05), suggesting no regular cadence today.
AI summary generated
Recent updates
13.0.3
Release 13.0.3 updates the npm build script to strip internal TypeScript members when generating type declaration files. The release notes describe a d.ts focused fix, and the code diff shows the change is implemented via compilerOptions.stripInternal.
Breaking13.0.2
Release 13.0.2 addresses a parsing edge case in closeComment(), where it should not react to comment open tokens that appear inside string literals. This is likely to improve correctness when processing source text that contains comment-like sequences in strings.
13.0.1
Release 13.0.1 was published on 2024-03-01, but the publisher did not provide any release notes. As a result, there is no documented information about new features, fixes, or potential breaking changes in this update.