{"library":"opt-cli","type":"library","category":null,"description":"opt-cli is a Node.js utility designed to conditionally execute CLI statements based on opt-in or opt-out rules. Its primary use case, as highlighted in its documentation, is for managing `ghooks` or similar pre-commit/pre-push scripts, allowing developers to enable or disable specific tasks without modifying `package.json` scripts directly. Rules are defined in `.opt-in` or `.opt-out` files in the project root, or via the `config.opt` field in `package.json`. The package has been stable at version 1.6.0 since October 2017, with no further releases or active development observed, indicating an abandoned status. It explicitly supports Node.js versions `>=4` and primarily functions as a CommonJS module, without apparent ESM support.","language":"javascript","status":"abandoned","version":"1.6.0","tags":["javascript","executer","cli","opt-in","opt-out"],"install":[{"cmd":"npm install opt-cli","imports":["const opt = require('opt-cli');","opt.testOptIn('rule-name');","opt.getExplicitOpts();"]},{"cmd":"yarn add opt-cli","imports":[]},{"cmd":"pnpm add opt-cli","imports":[]}],"homepage":null,"github":"https://github.com/ta2edchimp/opt-cli","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/opt-cli","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/opt-cli/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}