A module for calling out to the F# Interactive command capturing stdin and stdout as a duplex stream
npm install fsharp> A module for calling out to the F# Interactive command capturing stdin and stdout as a duplex stream
This module requires F# to be installed on the system to be useful. Installation guides for F# can be found at fsharp.org.
Example:
``
var fsharp = require('fsharp');
var script = fsharp('./script.fsx');
script.pipe(process.stdout);
`
#### options.path
Type: String
Required
Path to the script you want to execute.
#### options.executable
Type: String
Default: A function that looks for fsharpi in your path on Linux/Mac or fsi` on Windows. Will fall back to looking in default install directory on Windows.
The path to the F# Interactive executable.
#### options.args
Type: Array[String]
Default: undefined
Array of arguments you want to supply to your script
#### options.*
fsharp inherits from Stream.Duplex, the options are passed to the parent constructor so you can use it's options too.
[npm-url]: https://npmjs.org/package/fsharp
[npm-image]: https://badge.fury.io/js/fsharp.png
[travis-url]: http://travis-ci.org/mollerse/node-fsharp
[travis-image]: https://secure.travis-ci.org/mollerse/node-fsharp.png?branch=master
[depstat-url]: https://david-dm.org/mollerse/node-fsharp
[depstat-image]: https://david-dm.org/mollerse/node-fsharp.png?theme=shields.io