insomnia/app/lib/appInfo.js
2016-07-21 15:26:51 -07:00

22 lines
392 B
JavaScript

import * as appJson from '../app.json';
export function getAppVersion () {
return appJson.version;
}
export function getAppLongName () {
return appJson.longName;
}
export function getAppName () {
return appJson.productName;
}
export function isMac () {
return process.platform === 'darwin';
}
export function isDevelopment () {
return process.env.NODE_ENV === 'development';
}