mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 10:23:54 +00:00
20 lines
770 B
Plaintext
20 lines
770 B
Plaintext
table_name("npm_packages")
|
|
description("Lists all npm packages in a directory or globally installed in a system.")
|
|
schema([
|
|
Column("name", TEXT, "Package display name"),
|
|
Column("version", TEXT, "Package supplied version"),
|
|
Column("description", TEXT, "Package supplied description"),
|
|
Column("author", TEXT, "Package author name"),
|
|
Column("license", TEXT, "License for package"),
|
|
Column("path", TEXT, "Module's package.json path"),
|
|
Column("directory", TEXT, "Node module's directory where this package is located")
|
|
])
|
|
implementation("system/linux/npm_packages@genNPMPackages")
|
|
examples([
|
|
"select * from npm_packages",
|
|
"select * from npm_packages where directory = '/home/user/my_project'",
|
|
])
|
|
fuzz_paths([
|
|
"/usr/lib/node_modules/",
|
|
])
|