os-component

Return the operating system name

os

Return the operating system name.

$ component install component/os
var os = require('os');
console.log(os);
// => "mac" 
  • "mac"
  • "win"
  • "linux"

MIT