📜  节点执行本地 bin - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:20.306000             🧑  作者: Mango

代码示例1
# in your .zshrc or .bashrc:
function npm-do { (PATH=$(npm bin):$PATH; eval $@;) }
# restart zsh of course
# inside your project directory:
npm-do tsc --init
npm-do figlet hi # or whatever