Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: v0.8.11-release
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (8 sloc) 0.261 kB
import sys,os,re
node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src',
'node_version.h')
f = open(node_version_h)
for line in f:
if re.match('#define NODE_VERSION_IS_RELEASE', line):
release = int(line.split()[2])
print release
Jump to Line
Something went wrong with that request. Please try again.