One can run npm view <package> versions to get the version history of an npm package.

For example, to view the version history of karma-junit-reporter, you would run

npm view karma-junit-reporter versions  
[ '0.0.1',
  '0.0.2',
  '0.1.0',
  '0.2.1',
  '0.2.2',
  '0.3.0',
  '0.3.1',
  '0.3.2',
  '0.3.3',
  '0.3.4',
  '0.3.5',
  '0.3.6',
  '0.3.7',
  '0.3.8',
  '0.4.0',
  '0.4.1',
  '0.4.2',
  '1.0.0',
  '1.1.0',
  '2.0.0' ]