mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
24 lines
440 B
JavaScript
24 lines
440 B
JavaScript
|
'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';
|
||
|
};
|