win-find-jscript-compiler
Version:
Find .NET's jsc.exe on Windows
51 lines (37 loc) • 1.72 kB
Markdown
# win-find-jscript-compiler
**Find .NET's `jsc.exe` on Windows. Noop on other platforms.**
[](https://www.npmjs.org/package/win-find-jscript-compiler)
[](https://www.npmjs.org/package/win-find-jscript-compiler)
[](https://ci.appveyor.com/project/vweevers/win-find-jscript-compiler)
[](https://david-dm.org/vweevers/win-find-jscript-compiler)
[](https://standardjs.com)
## usage
```js
const jsc = require('win-find-jscript-compiler')
jsc(function (err, results) {
if (err) throw err
console.log(results)
})
```
Output (latest version and x64 sorts last):
```
[ { dotnet: '2.0.50727',
path: 'C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/jsc.exe',
cpu: 'x86' },
{ dotnet: '2.0.50727',
path: 'C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/jsc.exe',
cpu: 'x64' },
{ dotnet: '4.0.30319',
path: 'C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/jsc.exe',
cpu: 'x86' },
{ dotnet: '4.0.30319',
path: 'C:/WINDOWS/Microsoft.NET/Framework64/v4.0.30319/jsc.exe',
cpu: 'x64' } ]
```
## install
With [npm](https://npmjs.org) do:
```
npm install win-find-jscript-compiler
```
## license
[MIT](http://opensource.org/licenses/MIT) © Vincent Weevers