Add OS
module
This commit is contained in:
parent
dbc242c37f
commit
91daedd619
2 changed files with 11 additions and 0 deletions
10
js/modules/os.js
Normal file
10
js/modules/os.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* eslint-env node */
|
||||
|
||||
exports.isMacOS = () =>
|
||||
process.platform === 'darwin';
|
||||
|
||||
exports.isLinux = () =>
|
||||
process.platform === 'linux';
|
||||
|
||||
exports.isWindows = () =>
|
||||
process.platform === 'win32';
|
Loading…
Add table
Add a link
Reference in a new issue