UNPKG

wmi-client

Version:

Wrapper around the WMI client. Linux and Windows WMI clients are supported.

14 lines (10 loc) 239 B
'use strict'; module.exports = function (namespace) { var ns = namespace.match(/(\w+)/g); if (process.platform === 'win32') { ns = '\\\\' + ns.join('\\'); } else { ns = ns.join('\\'); } return ns; };