Add `OS` module
parent
dbc242c37f
commit
91daedd619
@ -0,0 +1,10 @@
|
||||
/* eslint-env node */
|
||||
|
||||
exports.isMacOS = () =>
|
||||
process.platform === 'darwin';
|
||||
|
||||
exports.isLinux = () =>
|
||||
process.platform === 'linux';
|
||||
|
||||
exports.isWindows = () =>
|
||||
process.platform === 'win32';
|
Loading…
Reference in New Issue