https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/npm.cpython-310.pyc
o

([Qh<�@sBddlZddlmZmZmZGdd�dee�ZGdd�de�ZdS)�N)�Plugin�IndependentPlugin�	PluginOptc@s@eZdZdZdZdZeddedd�gZdZ	dd
d�Z
dd
�Zd	S)�Npmz&Information from available npm modules�npm)�system�project-path�z+Collect npm modules of project at this path)�default�val_type�desc)rNcCs|j||d|d�dS)NF)�suggest_filename�stderr�runat)�add_cmd_output)�self�cmd�filename�working_directory�r�8/usr/lib/python3/dist-packages/sos/report/plugins/npm.py�_get_npm_outputs
�zNpm._get_npm_outputcCs`|�d�r"tj�tj�|�d���}|jdd|d�|jdd|d�|�dd�|�dd	�dS)
Nrz
npm ls --json�npm_ls_project)rznpm config list -l�npm_config_list_projectznpm ls -g --json�
npm_ls_global�npm_config_list_global)�
get_option�os�path�abspath�
expanduserr)r�project_pathrrr�setup%s
���z	Npm.setup)N)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr�str�option_list�packagesrr"rrrrrs��
	rc@seZdZdZdZdS)�NpmViaNodeJSzG
    some distribution methods don't provide 'npm' via npm package
    )�nodejsN)r#r$r%�__doc__r+rrrrr,3sr,)r�sos.report.pluginsrrrrr,rrrr�<module>s	$

https://t.me/RX1948 - 2025