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
- Maintenance status: The most recent upstream push and npm update is 2024-10-05, about 22.5 months ago as of 2026-09-10, so the project appears quiet/dormant rather than actively maintained.
- Update cadence: Updates came in clusters during 2024 (13.0.1 on 2024-03-01, 13.0.2 on 2024-07-26, 13.0.3 on 2024-10-05), with no further updates documented after that.
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.