Socket
Socket
Sign inDemoInstall

is-windows

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-windows

Returns true if the platform is windwows.


Version published
Weekly downloads
17M
decreased by-9.34%
Maintainers
1
Install size
7.35 kB
Created
Weekly downloads
 

Package description

What is is-windows?

The is-windows npm package is a simple utility that determines if the current runtime environment is Windows. It's a straightforward package with a single primary function, which is to check the operating system.

What are is-windows's main functionalities?

Check if the OS is Windows

This feature allows developers to programmatically check if their code is running on a Windows operating system. This can be useful for writing platform-specific code or for runtime environment checks.

var isWindows = require('is-windows');
console.log(isWindows()); // returns true if running on Windows, false otherwise

Other packages similar to is-windows

Readme

Source

is-windows NPM version NPM monthly downloads NPM total downloads Linux Build Status

Returns true if the platform is windwows.

Install

Install with npm:

$ npm install --save is-windows

Heads up!

As of v0.2.0 this module always returns a function.

Usage

var isWindows = require('is-windows');

isWindows();
//=> returns true if the platform is windows

About

  • is-absolute: Polyfill for node.js path.isAbolute. Returns true if a file path is absolute. | homepage
  • is-glob: Returns true if the given string looks like a glob pattern or an extglob pattern… more | homepage
  • is-relative: Returns true if the path appears to be relative. | homepage
  • isobject: Returns true if the value is an object and not an array or null. | homepage
  • window-size: Reliable way to to get the height and width of the terminal/console in a node.js… more | homepage

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Contributors

CommitsContributor
8jonschlinkert
1gucong3000

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb-generate-readme, v0.2.0, on December 08, 2016.

Keywords

FAQs

Last updated on 08 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc