windows-bin

1.0.1 • Public • Published

windows-bin

Find Windows core executables like cscript, preferring the native 64-bit version regardless of Node.js bitness. Because by default, when running 32-bit Node.js, Windows would redirect to 32-bit WoW64 executables.

npm status AppVeyor build status Standard

Usage

const bin = require('windows-bin')

// C:\Windows\Sysnative\cscript.exe
bin('cscript', function(err, path) {
  console.log(path)
})

// C:\Windows\system32\cscript.exe
bin('cscript', { native: false }, function(err, path) {
  console.log(path)
})

Install

With npm do:

npm install windows-bin

License

MIT

/windows-bin/

    Package Sidebar

    Install

    npm i windows-bin

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.56 kB

    Total Files

    6

    Last publish

    Collaborators

    • vweevers