https://github.com/vweevers/windows-bin
Find native Windows executables
https://github.com/vweevers/windows-bin
nodejs utility windows wow64
Last synced: 2 months ago
JSON representation
Find native Windows executables
- Host: GitHub
- URL: https://github.com/vweevers/windows-bin
- Owner: vweevers
- License: mit
- Created: 2016-03-12T14:52:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-27T13:03:37.000Z (over 3 years ago)
- Last Synced: 2025-03-19T11:42:22.385Z (2 months ago)
- Topics: nodejs, utility, windows, wow64
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://en.wikipedia.org/wiki/WoW64) executables.**
[](https://www.npmjs.org/package/windows-bin)
[](https://ci.appveyor.com/project/vweevers/windows-bin)
[](https://standardjs.com)## Usage
```js
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](https://npmjs.org) do:
```
npm install windows-bin
```## License
[MIT](LICENSE)