run npm local module executables

When there are CLI modules or other executable modules, I always end up with multiple versions in different local projects.

There is a convenient way of resolving the problem by using functions.

function n.local { (PATH=$(npm bin):$PATH; eval $@;) }

After run the above function, you can just run ‘n.local ‘: Continue reading