show-os

Get the OS/Distribution, release and platform name of the environment you are working.

Usage no npm install needed!

<script type="module">
  import showOs from 'https://cdn.skypack.dev/show-os';
</script>

README

show-os

Get the OS/Distribution, release and platform name of the environment you are working.

npm npm Travis CI Commitizen friendly The MIT License

Install

This module is distributed via npm which is bundled with node and should be installed as one of your project's dependencies:

$ npm install --save show-os

Usage

var showOS = require('show-os');

showOS();
//Darwin; 16.1.0 darwin x64

API

showOS()

Returns a String with current OS details such as OS type, release, platform & architecture.


License

Copyright (c) 2016 Aman Mittal