Add support for "lts" alias, closes #313#322
Conversation
--lts will display latest LTS version lts will install latest LTS version Node LTS releases use "a naming convention based on the Periodic Table of Elements [...] in alphabetical order", as announced here: https://nodejs.org/en/blog/release/v4.2.0/ LTS versions have their own folder in nodejs' dist folder, e.g.: https://nodejs.org/dist/latest-argon/ To retrieve latest LTS' latest version, we search for and fetch that folder. We get the semver number from the first file that holds it. Then we can fetch the trallbar.
|
This is cool - can it be merged and released? |
|
👍 |
|
+1 @qw3rtman Example usage of |
|
Also, I think we should remove |
|
I will want to keep stable in place for backward compatibility. It will just become an alias to lts. I do not think there will be any ambiguity. |
|
fair enough |
|
There can be more than 1 LTS version in a given point in time, based on this: https://github.com/nodejs/LTS/blob/master/README.md But I would say it is unnecessary for now. When I think in Anyway, in current Nodejs' dist folder has About @tejasmanohar pull request: I agree with removing the PD: I wrote this message some hours ago but forgot to send it. |
Right, agreed. |
|
index.json may not be up to date. a real early version of |
|
So we are good to go with this PR, right? (I kinda need this in npm for prod stuff. 😄 ) |
|
👍 would really like to see this merged :) |
|
@stefanmaric n, not npm, right? :) |
|
I meant the npm registry @tejasmanohar, so I can distribute some scripts to my peers. 😄 Already a month since I submitted the PR, won't merge? 😢 |
|
Would really love to have this functionality soon. |
|
cc: @maxrimue |
|
@stefanmaric I'm sorry, but I'm not a collaborator any more, which means that I do not have permissions to merge this |
What a pity. :c Who's in charge now? There's a good amount of users willing to use this feature (including myself 😄 ). cc: @tj |
|
I'm willing to merge. @tedgaydos is this good with you? |
|
You can merge it if you want. It looks fine. I will look to get this published to npm this weekend. I was away on a long project that is winding down. |
|
+1 |
--lts will display latest LTS version
lts will install latest LTS version
Node LTS releases use "a naming convention based on the Periodic
Table of Elements [...] in alphabetical order", as announced here:
https://nodejs.org/en/blog/release/v4.2.0/
LTS versions have their own folder in nodejs' dist folder, e.g.:
https://nodejs.org/dist/latest-argon/
To retrieve latest LTS' latest version, we search for and fetch
that folder. We get the semver number from the first file that
holds it. Then we can fetch the tarball.