How to add dependency to NPM package so that I get the latest version that ends with a specific tag
<p>The npm package for NW.js (package name "nw") has versions like this: </p>

<pre><code>0.16.0-beta2sdk, 0.16.0-beta1sdk, 0.15.4, 0.15.4-sdk, 0.15.3, 0.15.3-sdk, 0.15.2, 0.15.2-sdk,...
</code></pre>

<p>I am currently using nw as a dependency in my package.json manifest, and I was wondering what version I need to specify to get "the latest version that ends with -sdk".</p>

<p>I have tried things like '*-sdk' and '0.x-sdk' but that didn't quite work as intended. I had a look at the syntax for semantic versioning but couldn't immediately find something for tags like this. </p>

<p>Anyone know if this can be done via semantic versioning syntax?</p>

<p>Thanks</p>