ekalinin / nodeenv

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

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

Closed nix6839 closed 3 months ago

nix6839 commented 5 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 5 months ago

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

nix6839 commented 5 months ago

Could you add a test, please?

I've added the test.