detect-shell:检测系统上可用的shell

时间:2024-03-12 05:33:57
【文件属性】:

文件名称:detect-shell:检测系统上可用的shell

文件大小:9KB

文件格式:ZIP

更新时间:2024-03-12 05:33:57

TypeScript

检测壳 检测系统上可用的 (基于vscode的) 安装 $ npm install --save detect-shell 用法 const { detectAvailableShells } = require ( 'detect-shell' ) ; detectAvailableShells ( ) . then ( ( shells ) => { console . log ( shells ) ; } ) ; // output [ { label : 'bash' , path : '/bin/bash' } , { label : 'csh' , path : '/bin/csh' } , { label : 'dash' , path : '/bin/dash' } , { label : 'ksh' , path : '/bin/ksh' } ,


网友评论