Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Usage in README #290

Merged
merged 2 commits into from
Feb 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ $ cat package.json
}

$ npx sort-package-json
package.json is sorted!
aarondill marked this conversation as resolved.
Show resolved Hide resolved
# package.json is sorted!
#
# Found 1 file.
# 1 file successfully sorted.

$ cat package.json
{
Expand Down Expand Up @@ -59,14 +62,16 @@ When you want to check if your files are sorted, you can run CLI with the `--che
```bash
$ sort-package-json "**/package.json" --check

# 5 matched files are sorted.

# Found 5 files.
# 5 files were already sorted.

$ sort-package-json "**/package.json" --check
# foo/package.json
# bar/package.json

# 2 of 5 matched files are not sorted.
# Found 5 files.
# 3 files were not sorted.
# 2 files were already sorted.
```

#### `--quiet` flag
Expand Down