add `npm view .`

Fixes #5520

This adds back the ability to run `npm view .`

Includes multiple tests for `npm view`