mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-07 21:21:52 +00:00
- Homebridge is now designed to be `npm install`d globally and executed via "homebridge" script - Remove all specific accessories/platforms except for an example - New internal structure and "cli"
13 lines
287 B
JavaScript
13 lines
287 B
JavaScript
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;
|
|
}
|