Options (5)
booleanPrint all versions of direct dependencies in the current project to `stdout`
Example:
npm {{[ls|list]}}-a, --allbooleanPrint all installed packages including peer dependencies
Example:
npm {{[ls|list]}} {{[-a|--all]}}-g, --globalbooleanPrint all globally installed packages
Example:
npm {{[ls|list]}} {{[-g|--global]}}-l, --longbooleanPrint dependencies with extended information
Example:
npm {{[ls|list]}} {{[-l|--long]}}-p, --parseablebooleanPrint dependencies in parseable format
Example:
npm {{[ls|list]}} {{[-p|--parseable]}}Examples (6)
Print all versions of direct dependencies in the current project to `stdout`
npm [ls|list]Print all installed packages including peer dependencies
npm [ls|list] [-a|--all]Print all globally installed packages
npm [ls|list] [-g|--global]Print dependencies with extended information
npm [ls|list] [-l|--long]Print dependencies in parseable format
npm [ls|list] [-p|--parseable]Print dependencies in JSON format
npm [ls|list] --jsonmade by @shridhargupta | data from tldr-pages