Skip to content

Instantly share code, notes, and snippets.

@bkhanale
Created June 26, 2019 03:06
Show Gist options
  • Save bkhanale/9aee62f0c98e6d2068f2e5628053d980 to your computer and use it in GitHub Desktop.
Save bkhanale/9aee62f0c98e6d2068f2e5628053d980 to your computer and use it in GitHub Desktop.
def npm_outdated_command():
"""
Executes `npm outdated --json` in the project directory and returns the
output in the form of json.
"""
out = run('npm outdated --json', stdout=Capture())
data = json.loads(out.stdout.text)
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment