improve support for npm

it doesn't tell use about its encoding and I added support for
git cloning