insomnia/app/lib/appInfo.js

22 lines
396 B
JavaScript
Raw Normal View History

import * as appJson from '../app.json';
2016-07-07 20:10:55 +00:00
2016-07-21 22:26:51 +00:00
export function getAppVersion () {
2016-07-07 20:10:55 +00:00
return appJson.version;
}
2016-07-07 22:06:18 +00:00
2016-07-21 22:26:51 +00:00
export function getAppLongName () {
return appJson.longName;
}
export function getAppName () {
return appJson.productName;
}
2016-07-21 21:55:03 +00:00
export function isMac () {
return process.platform === 'darwin';
}
2016-07-07 22:06:18 +00:00
export function isDevelopment () {
2016-08-17 22:44:03 +00:00
return process.env.INSOMNIA_ENV === 'development';
2016-07-07 22:06:18 +00:00
}