Npm Facts

npm_packages

host.fact.npm_packages(directory=None)

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

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