11 lines
214 B
JavaScript
11 lines
214 B
JavaScript
|
var os = require('os');
|
||
|
|
||
|
var platform = os.platform();
|
||
|
|
||
|
module.exports = {
|
||
|
win: platform.match(/^win/),
|
||
|
linux: platform === 'linux',
|
||
|
mac: platform === 'darwin',
|
||
|
bsd: platform.match(/bsd$/)
|
||
|
};
|