UNPKG

homebridge-fhem

Version:
13 lines (9 loc) 287 B
var fs = require('fs'); var path = require('path'); 'use strict'; module.exports = getVersion(); function getVersion() { var packageJSONPath = path.join(__dirname, '../package.json'); var packageJSON = JSON.parse(fs.readFileSync(packageJSONPath)); return packageJSON.version; }