npm support -- adding pull request from @msiebuhr