is-windows-bash
Determines if Node is running on Windows Bash (WSL)
Last updated 9 years ago by ianmitchell .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-windows-bash 
SYNC missed versions from official npm registry.

is-windows-bash

Exports a function that returns true if the script is running in a Windows Bash environment (WSL) and false otherwise.

Usage

$ npm install is-windows-bash --save
const isWindowsBash = require('is-windows-bash');

if (isWindowsBash()) {
  console.log('Welcome to the future');
}

Current Tags

  • 1.0.3                                ...           latest (9 years ago)

4 Versions

  • 1.0.3                                ...           9 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |