feature: add get-os-folder helper

This commit is contained in:
George Lima 2018-12-01 02:20:37 -03:00
parent 072ab4caf8
commit 32ad1dfe92
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// @flow
import os from 'os';
export default () => {
const platform = os.platform();
if (platform === 'darwin') {
return 'mac';
}
return 'linux';
};