NodeSwap/NodeJsWebApi.cs
/// <summary>
/// Get the versions of Node that may be installed.
/// </summary>
Get the versions of Node that may be installed.
Get the versions of Node that may be installed .
public List<Version> GetInstallableNodeVersions(string prefix = "")
        {
            var minVersion = VersionParser.Parse(prefix != "" ? prefix : "0.0.0");
            var versions = new List<Version>();
            var reader = NodeVersionsStreamReader();
            string line;
            while ((line = reader.ReadLine()) != null)
            {
                var lineVersion = VersionParser.Parse(line.Split("\t")[0]);
                if (lineVersion >= minVersion && (prefix == "" || lineVersion.ToString().StartsWith(prefix)))
                {
                    versions.Add(lineVersion);
                }
            }
            return versions;
        }
public List < Version > GetInstallableNodeVersions ( string prefix = " " ) { var minVersion = VersionParser . Parse ( prefix != " " ? prefix : " " ) ; var versions = new List < Version > ( ) ; var reader = NodeVersionsStreamReader ( ) ; string line ; while ( ( line = reader . ReadLine ( ) ) != null ) { var lineVersion = VersionParser . Parse ( line . Split ( " \t " ) [ 0 ] ) ; if ( lineVersion >= minVersion && ( prefix == " " || lineVersion . ToString ( ) . StartsWith ( prefix ) ) ) { versions . Add ( lineVersion ) ; } } return versions ; }
Get the versions of Node that may be installed.
Get the versions of Node that may be installed .
prefix
string