Method: Licensed::Sources::NPM#package_metadata_command
- Defined in:
- lib/licensed/sources/npm.rb
#package_metadata_command ⇒ Object
Returns the output from running ‘npm list` to get package metadata
102 103 104 105 106 107 |
# File 'lib/licensed/sources/npm.rb', line 102 def args = %w(--json --long) args.concat() Licensed::Shell.execute("npm", "list", *args, allow_failure: true) end |