Audits exported bucket lifecycle declarations against a local retention policy. It is offline and read-only: no cloud credentials, provider API calls, or bucket changes. Requires Node.js 22+, zero dependencies. The exported auditLifecycle(data, policy, {now, deadline}) function and TOOLID live in src/index.mjs.
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/object-storage-lifecycle-auditor.mjs --root examples --policy policy.json --export passing-export.json
node bin/object-storage-lifecycle-auditor.mjs --root examples --policy policy.json --export failing-export.json