Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 156c299e70
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (9 sloc) 0.332 kB
import sys,re;
for line in sys.stdin:
if re.match('#define NODE_MAJOR_VERSION', line):
major = line.split()[2]
if re.match('#define NODE_MINOR_VERSION', line):
minor = line.split()[2]
if re.match('#define NODE_PATCH_VERSION', line):
patch = line.split()[2]
print '{0:s}.{1:s}.{2:s}.0'.format(major, minor, patch)
Jump to Line
Something went wrong with that request. Please try again.