Skip to content
This repository
branch: openssl-exports
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 12 lines (8 sloc) 0.261 kb
1 2 3 4 5 6 7 8 9 10 11
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
Something went wrong with that request. Please try again.