Back to Explore

dsherret/code-block-writer

GitHub
1 watchersOpen source

Last release: 10/5/2024

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

  • Actively maintained based on the presence of multiple npm updates in 2024 (13.0.2 in 2024-07-26 and 13.0.3 in 2024-10-05), with no evidence of long-term stasis in the provided history.
  • Apparent update cadence is modest, about every 2 months between the last two observed updates (July 26 to October 5, 2024).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 13.0.3

    10/5/2024

    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.

    Breaking
  • 13.0.2

    7/26/2024

    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.