JSPM

current-os

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q67544F
  • License MIT

Check the type of current OS 🧐 ..

Package Exports

  • current-os

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (current-os) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Current-OS ✔️


Build Status    Coverage Status    All Contributors

Check the type of current OS 🧐 ..

Installation


# npm ..
$ npm install current-os
# yarn .. 
$ yarn add current-os

Usage


The method of use is simple and very easy .. Just follow these steps :

var currentOS = require ('current-os'); 

// if you are using Windows OS : 
console.log(currentOS.isWindows); // ==> true
console.log(currentOS.isOSX); // ==> false
console.log(currentOS.isLinux); // ==> false

// if you are using OSX (Mac OS) : 
console.log(currentOS.isWindows); // ==> false
console.log(currentOS.isOSX); // ==> true
console.log(currentOS.isLinux); // ==> false

// if you are using Linux : 
console.log(currentOS.isWindows); // ==> false
console.log(currentOS.isOSX); // ==> false
console.log(currentOS.isLinux); // ==> true

Contributors ✨

Thanks goes to these wonderful people (emoji key):


imed jaberi

📖 💻 🚇 🚧

bluelovers

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

License


MIT