Attention
Zercurity has been acquired by JumpCloud.
This documentation will no longer be maintained or updated. You can read more about the acquisition, or signup to JumpCloud today.
npm_packages¶
Lists all npm packages in a directory or globally installed in a system.
Platform support¶
Please be aware that some queries can only be run against certain platforms. Below is a list of the supported platforms that this query supports. Zercurity will automatically pause queries from running if errors are detected. Running a query against an unsupported platform will result in the following error: no such table: npm_packages
- Linux
Table schema¶
Name | Type | Description |
---|---|---|
name | TEXT | Package display name |
version | TEXT | Package supplied version |
description | TEXT | Package supplied description |
author | TEXT | Package author name |
license | TEXT | License for package |
path | TEXT | Module’s package.json path |
directory | TEXT | Node module’s directory where this package is located |
Query examples¶
select * from npm_packages
select * from npm_packages where directory = '/home/user/my_project'