{"library":"nopt","type":"library","category":null,"description":"This library provides a robust and flexible option parsing solution for Node.js command-line interfaces. It is famously used by npm itself to handle its complex array of command-line arguments and configuration. `nopt` supports defining various option types (String, Number, Boolean, path, url, Date, Stream), shorthands for brevity, and mechanisms for handling unknown options. It maintains a consistent release cadence, with major versions frequently aligning with Node.js LTS cycles. The current stable version, `9.0.0`, requires Node `^20.17.0 || >=22.9.0`. Its key differentiators include strong type definition capabilities, automatic path resolution, and a battle-tested core proven by its integration into the npm CLI.","language":"javascript","status":"active","version":"9.0.0","tags":["javascript"],"install":[{"cmd":"npm install nopt","imports":["import nopt from 'nopt'","const nopt = require('nopt')","import nopt from 'nopt'; const types = nopt.typeDefs;"]},{"cmd":"yarn add nopt","imports":[]},{"cmd":"pnpm add nopt","imports":[]}],"homepage":null,"github":"https://github.com/npm/nopt","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/nopt","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/nopt/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}