ekalinin / nodeenv

Virtual environment for Node.js & integrator with virtualenv
http://ekalinin.github.io/nodeenv/
Other
1.7k stars 209 forks source link

Support leading `v` in `.node-version` #359

Closed nix6839 closed 1 month ago

nix6839 commented 3 months ago

From: https://github.com/shadowspawn/node-version-usage#suggested-compatible-format

Allowing a leading v is common and gives nice symmetry with node --version

$ node --version
v20.12.0
$ node --version > .node-version
ekalinin commented 3 months ago

Hey! Thanks for the patch! Could you add a test, please?

nix6839 commented 3 months ago

Could you add a test, please?

I've added the test.