HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/npm.cpython-36.pyc
3

3��d��@sBddlZddlmZmZmZGdd�dee�ZGdd�de�ZdS)�N)�Plugin�IndependentPlugin�	PluginOptc@s@eZdZdZdZd
Zeddedd�gZdZ	dd	d
�Z
dd�ZdS)�Npmz&Information from available npm modules�npm�system�project_path�z+Collect npm modules of project at this path)�defaultZval_typeZdescNcCs|j||d|d�dS)NF)Zsuggest_filename�stderrZrunat)Zadd_cmd_output)�self�cmd�filename�working_directory�r�/usr/lib/python3.6/npm.py�_get_npm_outputs
zNpm._get_npm_outputcCs`|jd�rDtjjtjj|jd���}|jdd|d�|jdd|d�|jdd�|jdd	�dS)
Nrz
npm ls --jsonZnpm_ls_project)rznpm config list -lZnpm_config_list_projectznpm ls -g --jsonZ
npm_ls_globalZnpm_config_list_global)Z
get_option�os�path�abspath�
expanduserr)rrrrr�setup%s
z	Npm.setup)r)r)N)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr�strZoption_list�packagesrrrrrrrs

	rc@seZdZdZdZdS)�NpmViaNodeJSzG
    some distribution methods don't provide 'npm' via npm package
    �nodejsN)r)rrr�__doc__rrrrrr3sr)rZsos.report.pluginsrrrrrrrrr�<module>
s$