Npm Facts

See also: Npm Operations.

npm.NpmPackages

host.get_fact(NpmPackages, directory=None)

Returns a dict of installed npm packages globally or in a given directory:

{
    "package_name": ["version"],
}