function npmVersion( pkg ) {
	var command = 'npm view '+pkg+' version --silent';
	try {
		return '^'+trim( shell( command ).toString() );
	} catch ( error ) {
		debug( 'Encountered an error when attempting to get the latest version of package `%s`: %s', pkg, error.message );
		return 'github:stdlib-js/' + replace( pkg, '@stdlib/', '' ) + '#main';
	}
}
Gets the latest version of a package on npm.

@private
@param {string} pkg - package name
@returns {string} latest version published to npm