conversations
listlengths
2
2
[ { "from": "human", "value": "Validate the cached package files and checksums via the `npm-doctor` command" }, { "from": "gpt", "value": "`npm doctor cache`" } ]
[ { "from": "human", "value": "Tell me about `npm find-dupes`." }, { "from": "gpt", "value": "Identify duplicate dependencies in `node_modules`.\nMore information: <https://docs.npmjs.com/cli/commands/npm-find-dupes>.\n" } ]
[ { "from": "human", "value": "List all duplicate packages within `node_modules` via the `npm-find-dupes` command" }, { "from": "gpt", "value": "`npm find-dupes`" } ]
[ { "from": "human", "value": "Include `devDependencies` in duplicate detection via the `npm-find-dupes` command" }, { "from": "gpt", "value": "`npm find-dupes --include=dev`" } ]
[ { "from": "human", "value": "List all duplicate instances of a specific package in `node-modules` via the `npm-find-dupes` command" }, { "from": "gpt", "value": "`npm find-dupes {{package_name}}`" } ]
[ { "from": "human", "value": "Exclude optional dependencies from duplicate detection via the `npm-find-dupes` command" }, { "from": "gpt", "value": "`npm find-dupes --omit=optional`" } ]
[ { "from": "human", "value": "Set the logging level for output via the `npm-find-dupes` command" }, { "from": "gpt", "value": "`npm find-dupes --loglevel={{silent|error|warn|info|verbose}}`" } ]
[ { "from": "human", "value": "Output duplicate information in JSON format via the `npm-find-dupes` command" }, { "from": "gpt", "value": "`npm find-dupes --json`" } ]
[ { "from": "human", "value": "Limit duplicate search to specific scopes via the `npm-find-dupes` command" }, { "from": "gpt", "value": "`npm find-dupes --scope={{@scope1,@scope2}}`" } ]
[ { "from": "human", "value": "Exclude specific scopes from duplicate detection via the `npm-find-dupes` command" }, { "from": "gpt", "value": "`npm find-dupes --omit-scope={{@scope1,@scope2}}`" } ]
[ { "from": "human", "value": "Tell me about `npm fund`." }, { "from": "gpt", "value": "Retrieve funding information from packages.\nMore information: <https://docs.npmjs.com/cli/commands/npm-fund>.\n" } ]
[ { "from": "human", "value": "List dependencies with funding URL for the project in the current directory via the `npm-fund` command" }, { "from": "gpt", "value": "`npm fund`" } ]
[ { "from": "human", "value": "Open the funding URL for a specific package in the default web browser via the `npm-fund` command" }, { "from": "gpt", "value": "`npm fund {{package}}`" } ]
[ { "from": "human", "value": "List dependencies with a funding URL for a specific [w]orkspace for the project in the current directory via the `npm-fund` command" }, { "from": "gpt", "value": "`npm fund -w {{workspace}}`" } ]
[ { "from": "human", "value": "Tell me about `npm home`." }, { "from": "gpt", "value": "Open the npm page, Yarn page, or GitHub repository of a package in the web browser.\nMore information: <https://github.com/sindresorhus/npm-home>.\n" } ]
[ { "from": "human", "value": "Open the `npm` page of a specific package in the web browser via the `npm-home` command" }, { "from": "gpt", "value": "`npm-home {{package}}`" } ]
[ { "from": "human", "value": "Open the GitHub repository of a specific package in the web browser via the `npm-home` command" }, { "from": "gpt", "value": "`npm-home -g {{package}}`" } ]
[ { "from": "human", "value": "Open the Yarn page of a specific package in the web browser via the `npm-home` command" }, { "from": "gpt", "value": "`npm-home -y {{package}}`" } ]
[ { "from": "human", "value": "Tell me about `npm init`." }, { "from": "gpt", "value": "Create a `package.json` file.\nMore information: <https://docs.npmjs.com/cli/commands/npm-init>.\n" } ]
[ { "from": "human", "value": "Initialize a new package with prompts via the `npm-init` command" }, { "from": "gpt", "value": "`npm init`" } ]
[ { "from": "human", "value": "Initialize a new package with default values via the `npm-init` command" }, { "from": "gpt", "value": "`npm init -y`" } ]
[ { "from": "human", "value": "Initialize a new package using a specific initializer via the `npm-init` command" }, { "from": "gpt", "value": "`npm init {{create-react-app}} {{my-app}}`" } ]
[ { "from": "human", "value": "Tell me about `npm install`." }, { "from": "gpt", "value": "Install Node packages.\nMore information: <https://docs.npmjs.com/cli/commands/npm-install>.\n" } ]
[ { "from": "human", "value": "Install dependencies listed in `package.json` via the `npm-install` command" }, { "from": "gpt", "value": "`npm install`" } ]
[ { "from": "human", "value": "Download a specific version of a package and add it to the list of dependencies in `package.json` via the `npm-install` command" }, { "from": "gpt", "value": "`npm install {{package_name}}@{{version}}`" } ]
[ { "from": "human", "value": "Download the latest version of a package and add it to the list of dev dependencies in `package.json` via the `npm-install` command" }, { "from": "gpt", "value": "`npm install {{package_name}} {{[-D|--save-dev]}}`" } ]
[ { "from": "human", "value": "Download the latest version of a package and install it globally via the `npm-install` command" }, { "from": "gpt", "value": "`npm install {{[-g|--global]}} {{package_name}}`" } ]
[ { "from": "human", "value": "Tell me about `npm list`." }, { "from": "gpt", "value": "This command is an alias of `npm ls`.\n" } ]
[ { "from": "human", "value": "View documentation for the original command via the `npm-list` command" }, { "from": "gpt", "value": "`tldr npm ls`" } ]
[ { "from": "human", "value": "Tell me about `npm login`." }, { "from": "gpt", "value": "Log in to a registry user account.\nSee also: `npm logout` for logging out.\nMore information: <https://docs.npmjs.com/cli/commands/npm-login>.\n" } ]
[ { "from": "human", "value": "Log in to a registry user account and save the credentials to the `.npmrc` file via the `npm-login` command" }, { "from": "gpt", "value": "`npm login`" } ]
[ { "from": "human", "value": "Log in using a custom registry via the `npm-login` command" }, { "from": "gpt", "value": "`npm login --registry={{registry_url}}`" } ]
[ { "from": "human", "value": "Log in using a specific authentication strategy via the `npm-login` command" }, { "from": "gpt", "value": "`npm login --auth-type={{legacy|web}}`" } ]
[ { "from": "human", "value": "Tell me about `npm logout`." }, { "from": "gpt", "value": "Log out of the registry user account.\nSee also: `npm login` for logging in.\nMore information: <https://docs.npmjs.com/cli/commands/npm-logout>.\n" } ]
[ { "from": "human", "value": "Log out of the registry user account via the `npm-logout` command" }, { "from": "gpt", "value": "`npm logout`" } ]
[ { "from": "human", "value": "Log out using a custom registry via the `npm-logout` command" }, { "from": "gpt", "value": "`npm logout --registry={{registry_url}}`" } ]
[ { "from": "human", "value": "Tell me about `npm ls`." }, { "from": "gpt", "value": "Print installed packages to `stdout`.\nMore information: <https://docs.npmjs.com/cli/commands/npm-ls>.\n" } ]
[ { "from": "human", "value": "Print all versions of direct dependencies to `stdout` via the `npm-ls` command" }, { "from": "gpt", "value": "`npm ls`" } ]
[ { "from": "human", "value": "Print all installed packages including peer dependencies via the `npm-ls` command" }, { "from": "gpt", "value": "`npm ls --all`" } ]
[ { "from": "human", "value": "Print dependencies with extended information via the `npm-ls` command" }, { "from": "gpt", "value": "`npm ls --long`" } ]
[ { "from": "human", "value": "Print dependencies in parseable format via the `npm-ls` command" }, { "from": "gpt", "value": "`npm ls --parseable`" } ]
[ { "from": "human", "value": "Print dependencies in JSON format via the `npm-ls` command" }, { "from": "gpt", "value": "`npm ls --json`" } ]
[ { "from": "human", "value": "Tell me about `npm`." }, { "from": "gpt", "value": "JavaScript and Node.js package manager.\nManage Node.js projects and their module dependencies.\nMore information: <https://www.npmjs.com>.\n" } ]
[ { "from": "human", "value": "Create a `package.json` file with default values (omit `--yes` to do it interactively) via the `npm` command" }, { "from": "gpt", "value": "`npm init {{[-y|--yes]}}`" } ]
[ { "from": "human", "value": "Download all the packages listed as dependencies in `package.json` via the `npm` command" }, { "from": "gpt", "value": "`npm install`" } ]
[ { "from": "human", "value": "Download a specific version of a package and add it to the list of dependencies in `package.json` via the `npm` command" }, { "from": "gpt", "value": "`npm install {{package_name}}@{{version}}`" } ]
[ { "from": "human", "value": "Download the latest version of a package and add it to the list of dev dependencies in `package.json` via the `npm` command" }, { "from": "gpt", "value": "`npm install {{package_name}} {{[-D|--save-dev]}}`" } ]
[ { "from": "human", "value": "Download the latest version of a package and install it globally via the `npm` command" }, { "from": "gpt", "value": "`npm install {{[-g|--global]}} {{package_name}}`" } ]
[ { "from": "human", "value": "Uninstall a package and remove it from the list of dependencies in `package.json` via the `npm` command" }, { "from": "gpt", "value": "`npm uninstall {{package_name}}`" } ]
[ { "from": "human", "value": "List all locally installed dependencies via the `npm` command" }, { "from": "gpt", "value": "`npm list`" } ]
[ { "from": "human", "value": "List all top-level globally installed packages via the `npm` command" }, { "from": "gpt", "value": "`npm list {{[-g|--global]}} --depth {{0}}`" } ]
[ { "from": "human", "value": "Tell me about `npm name`." }, { "from": "gpt", "value": "Check whether a package or organization name is available on npm.\nMore information: <https://github.com/sindresorhus/npm-name-cli>.\n" } ]
[ { "from": "human", "value": "Check if a specific package name is available in the `npm` registry via the `npm-name` command" }, { "from": "gpt", "value": "`npm-name {{package}}`" } ]
[ { "from": "human", "value": "Find similar package names in the `npm` registry via the `npm-name` command" }, { "from": "gpt", "value": "`npm-name --similar {{package}}`" } ]
[ { "from": "human", "value": "Tell me about `npm org`." }, { "from": "gpt", "value": "Manage organizations.\nMore information: <https://docs.npmjs.com/cli/commands/npm-org>.\n" } ]
[ { "from": "human", "value": "Add a new user to an organization via the `npm-org` command" }, { "from": "gpt", "value": "`npm org set {{organization_name}} {{username}}`" } ]
[ { "from": "human", "value": "Change a user's role in an organization via the `npm-org` command" }, { "from": "gpt", "value": "`npm org set {{organization_name}} {{username}} {{developer|admin|owner}}`" } ]
[ { "from": "human", "value": "Remove a user from an organization via the `npm-org` command" }, { "from": "gpt", "value": "`npm org rm {{organization_name}} {{username}}`" } ]
[ { "from": "human", "value": "List all users in an organization via the `npm-org` command" }, { "from": "gpt", "value": "`npm org ls {{organization_name}}`" } ]
[ { "from": "human", "value": "List all users in an organization, output in JSON format via the `npm-org` command" }, { "from": "gpt", "value": "`npm org ls {{organization_name}} --json`" } ]
[ { "from": "human", "value": "Display a user's role in an organization via the `npm-org` command" }, { "from": "gpt", "value": "`npm org ls {{organization_name}} {{username}}`" } ]
[ { "from": "human", "value": "Tell me about `npm outdated`." }, { "from": "gpt", "value": "Check for outdated npm package dependencies.\nMore information: <https://docs.npmjs.com/cli/commands/npm-outdated>.\n" } ]
[ { "from": "human", "value": "Find packages that are outdated in a project via the `npm-outdated` command" }, { "from": "gpt", "value": "`npm outdated`" } ]
[ { "from": "human", "value": "Find packages that are outdated regardless of the current project via the `npm-outdated` command" }, { "from": "gpt", "value": "`npm outdated --all`" } ]
[ { "from": "human", "value": "Tell me about `npm owner`." }, { "from": "gpt", "value": "Manage ownership of published packages.\nMore information: <https://docs.npmjs.com/cli/commands/npm-owner>.\n" } ]
[ { "from": "human", "value": "Add a new user as a maintainer of a package via the `npm-owner` command" }, { "from": "gpt", "value": "`npm owner add {{username}} {{package_name}}`" } ]
[ { "from": "human", "value": "Remove a user from a package's owner list via the `npm-owner` command" }, { "from": "gpt", "value": "`npm owner rm {{username}} {{package_name}}`" } ]
[ { "from": "human", "value": "List all owners of a package via the `npm-owner` command" }, { "from": "gpt", "value": "`npm owner ls {{package_name}}`" } ]
[ { "from": "human", "value": "Tell me about `npm query`." }, { "from": "gpt", "value": "Print an array of dependency objects using CSS-like selectors.\nMore information: <https://docs.npmjs.com/cli/commands/npm-query>.\n" } ]
[ { "from": "human", "value": "Print direct dependencies via the `npm-query` command" }, { "from": "gpt", "value": "`npm query ':root > *'`" } ]
[ { "from": "human", "value": "Print all direct production/development dependencies via the `npm-query` command" }, { "from": "gpt", "value": "`npm query ':root > .{{prod|dev}}'`" } ]
[ { "from": "human", "value": "Print dependencies with a specific name via the `npm-query` command" }, { "from": "gpt", "value": "`npm query '#{{package}}'`" } ]
[ { "from": "human", "value": "Print dependencies with a specific name and within a semantic versioning range via the `npm-query` command" }, { "from": "gpt", "value": "`npm query '#{{package}}@{{semantic_version}}'`" } ]
[ { "from": "human", "value": "Print dependencies which have no dependencies via the `npm-query` command" }, { "from": "gpt", "value": "`npm query ':empty'`" } ]
[ { "from": "human", "value": "Find all dependencies with postinstall scripts and uninstall them via the `npm-query` command" }, { "from": "gpt", "value": "`npm query \":attr(scripts, [postinstall])\" | jq 'map(.name) | join(\"\\n\")' -r | xargs -I {} npm uninstall {}`" } ]
[ { "from": "human", "value": "Find all Git dependencies and print which application requires them via the `npm-query` command" }, { "from": "gpt", "value": "`npm query \":type(git)\" | jq 'map(.name)' | xargs -I {} npm why {}`" } ]
[ { "from": "human", "value": "Tell me about `npm restart`." }, { "from": "gpt", "value": "This command is an alias of `npm run restart`.\n" } ]
[ { "from": "human", "value": "View documentation for the original command via the `npm-restart` command" }, { "from": "gpt", "value": "`tldr npm run`" } ]
[ { "from": "human", "value": "Tell me about `npm root`." }, { "from": "gpt", "value": "Display path to `node_modules` directory.\nMore information: <https://docs.npmjs.com/cli/commands/npm-root>.\n" } ]
[ { "from": "human", "value": "Display path to the local `node_modules` directory via the `npm-root` command" }, { "from": "gpt", "value": "`npm root`" } ]
[ { "from": "human", "value": "Display path to the global `node_modules` directory via the `npm-root` command" }, { "from": "gpt", "value": "`npm root --global`" } ]
[ { "from": "human", "value": "Tell me about `npm run`." }, { "from": "gpt", "value": "Run a script.\nMore information: <https://docs.npmjs.com/cli/commands/npm-run-script>.\n" } ]
[ { "from": "human", "value": "Run a script via the `npm-run` command" }, { "from": "gpt", "value": "`npm run {{script_name}}`" } ]
[ { "from": "human", "value": "Pass arguments to a script via the `npm-run` command" }, { "from": "gpt", "value": "`npm run {{script_name}} -- {{argument}} {{--option}}`" } ]
[ { "from": "human", "value": "Run a script named `start` via the `npm-run` command" }, { "from": "gpt", "value": "`npm start`" } ]
[ { "from": "human", "value": "Run a script named `stop` via the `npm-run` command" }, { "from": "gpt", "value": "`npm stop`" } ]
[ { "from": "human", "value": "Run a script named `restart` via the `npm-run` command" }, { "from": "gpt", "value": "`npm restart`" } ]
[ { "from": "human", "value": "Run a script named `test` via the `npm-run` command" }, { "from": "gpt", "value": "`npm test`" } ]
[ { "from": "human", "value": "Tell me about `npm run-script`." }, { "from": "gpt", "value": "This command is an alias of `npm run`.\n" } ]
[ { "from": "human", "value": "View documentation for the original command via the `npm-run-script` command" }, { "from": "gpt", "value": "`tldr npm run`" } ]
[ { "from": "human", "value": "Tell me about `npm search`." }, { "from": "gpt", "value": "Search for packages in the `npm` registry.\nMore information: <https://docs.npmjs.com/cli/commands/npm-search>.\n" } ]
[ { "from": "human", "value": "Search for a package by name via the `npm-search` command" }, { "from": "gpt", "value": "`npm search {{package}}`" } ]
[ { "from": "human", "value": "Search for packages by a specific keyword via the `npm-search` command" }, { "from": "gpt", "value": "`npm search {{keyword}}`" } ]
[ { "from": "human", "value": "Search for packages, including detailed information (e.g., description, author, version) via the `npm-search` command" }, { "from": "gpt", "value": "`npm search {{package}} --long`" } ]
[ { "from": "human", "value": "Search for packages maintained by a specific author via the `npm-search` command" }, { "from": "gpt", "value": "`npm search --author {{author}}`" } ]
[ { "from": "human", "value": "Search for packages with a specific organization via the `npm-search` command" }, { "from": "gpt", "value": "`npm search --scope {{organization}}`" } ]
[ { "from": "human", "value": "Search for packages with a specific combination of terms via the `npm-search` command" }, { "from": "gpt", "value": "`npm search {{term1 term2 ...}}`" } ]
[ { "from": "human", "value": "Tell me about `npm star`." }, { "from": "gpt", "value": "Mark a package as favorite.\nMore information: <https://docs.npmjs.com/cli/commands/npm-star>.\n" } ]
[ { "from": "human", "value": "Star a public package from the default registry via the `npm-star` command" }, { "from": "gpt", "value": "`npm star {{package_name}}`" } ]
[ { "from": "human", "value": "Star a package within a specific scope via the `npm-star` command" }, { "from": "gpt", "value": "`npm star @{{scope}}/{{package_name}}`" } ]