'In NPM, How to get the list of packages under a scope?
We are developing custom packages and each package is maintained under the scope. For example:
@nest/common@nest/core@nest/microservice
How to get the list of packages available in the particular scope? For e.g I want to view the list of packages under @nest. npm list returns all the packages.
Solution 1:[1]
Searching on npm for the explicit scope will return the available public packages for that scope.
For example:
» npm search @nest
NAME | DESCRIPTION | AUTHOR | DATE
@nest/testing | Nest - the testing… | =wbhob | 2017-12-22
@nest/core | Nest - the core… | =wbhob | 2017-12-22
@nest/websockets | Nest - the… | =wbhob | 2017-12-22
@nest/microservices | Nest - the… | =wbhob | 2017-12-22
If the scope contains more than 20 packages, you need to use the --searchlimit option with a higher limit, like npm --searchlimit=100 search @nestjs
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
