DEV Community

Discussion on: Running Local NPM Executables

Collapse
 
thibmaek profile image
Thibault Maekelbergh

I had this:

function npm-do {
  (PATH=$(npm bin):$PATH;
   eval $@;)
}

Seems very equal, is this considered safer or maybe yours is?

Collapse
 
hkly profile image
hkly

Hm, I don't actually know enough bash to know which is safer. Does anyone else know?