Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vweevers/windows-bin
Find native Windows executables
https://github.com/vweevers/windows-bin
nodejs utility windows wow64
Last synced: 16 days 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-27T13:03:37.000Z (about 3 years ago)
- Last Synced: 2025-01-03T00:34:22.147Z (22 days 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.**
[![npm status](http://img.shields.io/npm/v/windows-bin.svg)](https://www.npmjs.org/package/windows-bin)
[![AppVeyor build status](https://img.shields.io/appveyor/ci/vweevers/windows-bin.svg)](https://ci.appveyor.com/project/vweevers/windows-bin)
[![Standard](https://img.shields.io/badge/standard-informational?logo=javascript&logoColor=fff)](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)