### Querying a Specific Module (lodash) - bash Source: https://github.com/ranyitz/qnm/blob/master/README.md This is a concrete example demonstrating how to use qnm to find information about the 'lodash' module, including its installed versions and locations. ```bash bunx qnm lodash ``` -------------------------------- ### Installing qnm globally with npm (bash) Source: https://github.com/ranyitz/qnm/blob/master/README.md Provides the command to install the `qnm` package globally using npm, although using `npx` or `bunx` is recommended. ```bash npm i --global qnm ``` -------------------------------- ### Setting up Local Development Environment (Bash) Source: https://github.com/ranyitz/qnm/blob/master/CONTRIBUTING.md Clones the qnm repository, navigates into the directory, installs dependencies using yarn, builds the project, and runs the initial tests. This is the standard sequence for preparing the project for local development. ```Bash git clone git@github.com:/qnm.git cd qnm yarn yarn build yarn test ``` -------------------------------- ### Basic Usage with bunx - bash Source: https://github.com/ranyitz/qnm/blob/master/README.md This command shows the basic syntax for using qnm via bunx (or npx) to query information about a specific module installed in the node_modules directory. ```bash bunx qnm [module] ``` -------------------------------- ### Using qnm match command (bash) Source: https://github.com/ranyitz/qnm/blob/master/README.md Demonstrates how to use the `qnm match` command with `bunx` to find installed packages whose names include a specific string, like 'eslint-plug'. ```bash bunx qnm match eslint-plug ``` -------------------------------- ### Running Linter (Bash) Source: https://github.com/ranyitz/qnm/blob/master/CONTRIBUTING.md Executes the project's linter using yarn, typically configured with ESLint. This command checks the codebase for style guide violations and potential errors, helping maintain code quality and consistency. ```Bash yarn lint ``` -------------------------------- ### Running the List Command - bash Source: https://github.com/ranyitz/qnm/blob/master/README.md Executes the 'list' command (alias 'ls') to return a comprehensive list of all modules found within the node_modules directory. ```bash bunx qnm list ``` -------------------------------- ### Running the Doctor Command - bash Source: https://github.com/ranyitz/qnm/blob/master/README.md Executes the experimental 'doctor' command, which helps identify the heaviest modules in your node_modules directory to understand space usage. ```bash bunx qnm doctor ``` -------------------------------- ### Linking Local qnm Command (Bash) Source: https://github.com/ranyitz/qnm/blob/master/CONTRIBUTING.md Uses npm link to create a symbolic link from the global node_modules directory to the local qnm project directory. This allows the locally built qnm command to be executed from any directory on the system. ```Bash npm link ``` -------------------------------- ### Running Tests in Watch Mode (Bash) Source: https://github.com/ranyitz/qnm/blob/master/CONTRIBUTING.md Executes the test suite using yarn, typically configured to use Jest, in watch mode. This command automatically re-runs tests when source files change, facilitating rapid development and testing cycles. ```Bash yarn test:watch ``` -------------------------------- ### Doctor Command with Duplicates Sort - bash Source: https://github.com/ranyitz/qnm/blob/master/README.md Runs the 'doctor' command and sorts the output based on the number of duplications a module has within the node_modules directory. ```bash bunx qnm doctor --sort duplicates ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.