📅  最后修改于: 2022-03-11 14:50:20.306000             🧑  作者: Mango
# 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