npm_packages

Lists all npm packages in a directory or globally installed in a system.

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'