How you can verify the model of an put in npm package deal

[ad_1]

On this tutorial, we’re going to find out about easy methods to verify the model of a put in npm package deal and its dependencies.

Put in model of all packages

To verify the put in model of all npm packages in your venture, you should use the npm checklist
command.

Output:

├─┬ specific@4.17.1
│ ├─┬ accepts@1.3.7
│ │ ├─┬ mime-types@2.1.26
│ │ │ └── mime-db@1.43.0
│ │ └── negotiator@0.6.2
│ ├── array-flatten@1.1.1
│ ├─┬ body-parser@1.19.0
│ │ ├── bytes@3.1.0
│ │ ├── content-type@1.0.4 deduped
│ │ ├── debug@2.6.9 deduped
│ │ ├── depd@1.1.2 deduped
│ │ ├─┬ http-errors@1.7.2
│ │ │ ├── depd@1.1.2 deduped
│ │ │ ├── inherits@2.0.3
│ │ │ ├── setprototypeof@1.1.1 deduped
│ │ │ ├── statuses@1.5.0 deduped
│ │ │ └── toidentifier@1.0.0
│ │ ├─┬ iconv-lite@0.4.24
│ │ │ └── safer-buffer@2.1.2
│ │ ├── on-finished@2.3.0 deduped
│ │ ├── qs@6.7.0 deduped

Be aware: The npm checklist command doesn’t solely present the put in model of packages, but in addition their dependencies (model).

For globally put in packages, you should use the npm checklist -g command.

Put in model of a selected package deal

To verify the put in model of a selected package deal, you should use the npm checklist command by specifying a package deal identify.

Instance:

Output:

node-project@1.0.0 /Customers/saigowtham/Desktop/node-project
└── specific@4.17.1

If you wish to verify the most recent model of a package deal out there in npm repository, you should use
the npm view package-name model command.

Output:

[ad_2]

Leave a Comment

Your email address will not be published. Required fields are marked *