insomnia/app/backend/appInfo.js

24 lines
440 B
JavaScript
Raw Normal View History

2016-09-21 00:03:26 +00:00
'use strict';
const appJson = require('../package.json');
module.exports.getAppVersion = () => {
return appJson.version;
};
module.exports.getAppLongName = () => {
return appJson.longName;
};
module.exports.getAppName = () => {
return appJson.productName;
};
module.exports.isMac = () => {
return process.platform === 'darwin';
};
module.exports.isDevelopment = () => {
return process.env.INSOMNIA_ENV === 'development';
};