The linked example has the equivalent of Python re...
# development
e
The linked example has the equivalent of Python requirement constraints. Presumably that library allows parsing those and then testing if a given Node version is in range.