Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fsharp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fsharp

A module for calling out to the F# Interactive command capturing stdin and stdout as a duplex stream

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

node-fsharp NPM version Build Status Dependency Status

A module for calling out to the F# Interactive command capturing stdin and stdout as a duplex stream

Usage

This module creates a Duplex stream from the F# Interactive command. Writing to stdin and reading from stdout. Also emitting stderr if the command exits non-0.

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);

API

fsharp(options)

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.

fsharp(String)

Sugar for fsharp({path: String});

License

MIT License

Keywords

FAQs

Package last updated on 23 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc