Using pyinfra
Deploy Reference
npm.NpmPackages
How pyinfra Works
Meta
host.get_fact(NpmPackages, directory=None)
rns a dict of installed npm packages globally or in a given directory:
ode:: python
“package_name”: [“version”],
}