fixdevcontainer
v1.3.229
Published
Humanely sort top-level keys in devcontainer.json
Readme
fixdevcontainer
Humanely sort top-level keys in devcontainer.json
Inspired by fixpack!
✨ Features
For devcontainer.json, sort the top-level keys by category for easier reading.
The specific order is defined by the predefinedOrder variable in fixdevcontainer.js.
Keys that are not in that list are kept, reported with a warning, and appended at the end in alphabetical order.
🚀 Usage
# Sorts .devcontainer/devcontainer.json in the current directory
npx fixdevcontainer
# Sorts the given file
npx fixdevcontainer path/to/devcontainer.jsonJSON files with comments and trailing commas are supported. The file is rewritten in place as JSON (2-space indentation), so comments and trailing commas are removed.
📑 License
This project is licensed under the MIT License.
