node package manager

os-component

Return the operating system name

os

Return the operating system name.

Installation

$ component install component/os

Example

var os = require('os');
console.log(os);
// => "mac" 

Supports

  • "mac"
  • "win"
  • "linux"

License

MIT