Check if the version is already exists before uploading

When trying npm publish on a version number that is already publish the folder will be uploaded and then you will get an error saying you can’t publish because version already exists.

So instead I am suggesting to check if the version is already there before uploading files.

Good advaise, thank you.

It would be great to have this is-published command.

Please consider. Thanks