Added resolve function to Npm.
Merge branch 'npm-resolve' into peerlibrary