fable-import-electron

Fable bindings for Electron

Usage no npm install needed!

<script type="module">
  import fableImportElectron from 'https://cdn.skypack.dev/fable-import-electron';
</script>

README

fable-import-electron

Fable bindings for Electron

Installation

$ npm install --save fable-core
$ npm install --save-dev electron-prebuilt fable-import-electron

Usage

In a F# project (.fsproj)

  <ItemGroup>
    <Reference Include="node_modules/fable-core/Fable.Core.dll" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="node_modules/fable-import-electron/Fable.Import.Electron.fs" />
  </ItemGroup>

In a F# script (.fsx)

#r "node_modules/fable-core/Fable.Core.dll"
#load "node_modules/fable-import-electron/Fable.Import.Electron.fs"

open Fable.Core
open Fable.Import