Format package.json — Fix Indentation & Sorting
Quick Answer: Paste your package.json to re-indent it with standard 2-space formatting. This is useful after merge conflicts or when npm/yarn has mangled the whitespace.
FAQ
What indentation does npm use for package.json?
npm uses 2-space indentation by default when writing package.json. Most formatters match this convention.
Will formatting change my dependency versions?
No. Formatting only changes whitespace and indentation. All values, versions, and keys remain identical.