Innovenergy_trunk/frontend/node_modules/os-family/index.js

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$/)
};