Skip to content

docs: fix the npm README example - #17

Merged
dsherret merged 1 commit into
mainfrom
fix-npm-readme-example
Oct 21, 2026
Merged

dsherret merged 1 commit into
mainfrom
fix-npm-readme-example

Conversation

@dsherret

Copy link
Copy Markdown
Member

The example called formatText(filePath, fileText), which @dprint/formatter 0.4 no longer supports. It now takes { filePath, fileText }, and the old form formats the wrong input and returns "\n" without an error.

@dsherret
dsherret merged commit 477f067 into main Oct 21, 2026
2 checks passed
@dsherret
dsherret deleted the fix-npm-readme-example branch October 21, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant