gar:节点参数解析器 源码
gar 轻量级Node参数解析器 | 安装 npm i gar 利用 const args = require ( 'gar' ) ( process . argv . slice ( 2 ) ) console . log ( args ) 因此,适用于: -h hey --toggle -ac --hey=hi -spaced "hey there" -num 1 lone { " h " : " hey " , " toggle " : true , " a " : true , " c " : true , " hey " : " hi " , " spaced
用户评论