TOOLID=cloud-resource-naming-auditor. Zero-dependency Node 22+ reporter for a complete exported resource inventory and a local environment-marker policy. It supports two explicit AWS naming profiles; unsupported providers or services are incomplete, not assumed valid. It never calls cloud APIs, fetches naming rules, creates resources, or changes tags.
This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+.
Run the checked-in example
node bin/cloud-resource-naming-auditor.mjs --root examples/pass --policy policy.json --inventory inventory.json
node bin/cloud-resource-naming-auditor.mjs --root examples/fail --policy policy.json --inventory inventory.json
npm run checkRead the result
The examples exit 0 and 1. --help lists flags; --human adds a fixed stderr summary. The library exports TOOLID, LIMITS, RULESEVERITY, and auditNames(policy,inventory,{now}) with an injected monotonic clock.