I have installed the global npm package jslint and it lives here
jslint
$ ls -la /usr/local/bin/jslint lrwxr-xr-x 1 lust admin 40 Feb 12 15:31 /usr/loc
~/.npm is a cache that npm uses to avoid re-downloading the same package multiple times. There's no harm in removing it. You can empty it with the command:
~/.npm
npm cache clean