
Security News
Federal Audit Finds NIST Wasted Funds With No Plan to Clear NVD Backlog
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.
@y13i/sort-keys-cli
Advanced tools
Sort YAML/JSON keys via STDIN.
npm install -g @y13i/sort-keys-cli
The container image is also available.
Usage: sort-keys [options]
Sort YAML/JSON keys via STDIN.
Options:
-V, --version output the version number
-d, --depth <number> limits how many levels deep to recursively sort nested objects and arrays.
-k, --prioritize-keys <keys...> keys listed here are moved to the front, in the order given, before the remaining keys are sorted alphabetically.
-p, --prioritize-primitives keys with primitive values (numbers, strings, booleans, null, undefined) are sorted before keys with object or array values.
-o, --output <json|yaml> output format (default: "yaml")
-h, --help display help for command
echo '{"b": "foo", "a": "bar"}' | sort-keys
cat something.json | npx @y13i/sort-keys-cli -o json | jq
kubectl -n kube-system -o yaml get configmap kube-root-ca.crt | docker run --rm -i ghcr.io/y13i/sort-keys-cli:latest -k apiVersion kind metadata name namespace labels annotations
See y13i/sort-keys.
FAQs
Sort keys of the given YAML/JSON via STDIN.
We found that @y13i/sort-keys-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.