Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 09329e7833
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.