* Get the binary name to be used based on version passed. * 'node' for version 0.X or 4.X and above * 'iojs' for version 1.X, 2.X and 3.X
(semanticVersion)
| 254 | * 'iojs' for version 1.X, 2.X and 3.X |
| 255 | */ |
| 256 | static getBinaryNameFromVersion(semanticVersion) { |
| 257 | if (/^1\./.test(semanticVersion) || |
| 258 | /^2\./.test(semanticVersion) || |
| 259 | /^3\./.test(semanticVersion)) { |
| 260 | return 'iojs'; |
| 261 | } else { |
| 262 | return 'node'; |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * Tests if a partial version (filter) matches a specific version. |
no outgoing calls
no test coverage detected