Fable.Deno 0.1.0

dotnet add package Fable.Deno --version 0.1.0
                    
NuGet\Install-Package Fable.Deno -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fable.Deno" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fable.Deno" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Fable.Deno" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fable.Deno --version 0.1.0
                    
#r "nuget: Fable.Deno, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fable.Deno@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fable.Deno&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Fable.Deno&version=0.1.0
                    
Install as a Cake Tool

Fable.Deno

This repository offers bindings for the Deno API and some bindings for the std lib.

Import Maps

It is recommended to use an import map as deno supports them and allow you to customize the way you import dependencies for deno, you can include one using the deno.json configuration file on your project's root or by using the CLI

{
  "tasks": {
    "start": "deno run -A --watch=dist/ ./dist/Program.js"
  },
  "importMap": "./import_map.json"
}

Standard Library

Standard library bindings are imported with the following convention

  • fable-deno-* where * is the name of the standard library module being imported

these are a few examples:

  • fable-deno-http
  • fable-deno-fs
  • fable-deno-streams
  • fable-deno-io

This is to prevent potential collisions with third party bindings, and also means that you have to provide an import map that satisfies the import conditions, for example to be able to import those modules you'd need an import map like this

{
  "imports": {
    "fable-deno-http": "https://deno.land/std/http/mod.ts",
    "fable-deno-fs": "https://deno.land/std/fs/mod.ts",
    "fable-deno-streams": "https://deno.land/std/streams/mod.ts",
    "fable-deno-io": "https://deno.land/std/io/mod.ts"
  }
}

if a binding is broken on a newer deno release you can pin the URL to the version the binding still works untill the bindings are updated.

Example: "fable-deno-http": "https://deno.land/std@0.148.0/http/mod.ts"

Note: Please keep in mind that some imports don't provide a mod.ts file so you will have to change the imports to make it work

Available Modules

  • archive
    • Tar
    • UnTar
    • TarEntry
  • async
    • DeadlineError
    • MuxAsyncIterator
    • ERROR_WHILE_MAPPING_MESSAGE
    • DeadlineError
    • MuxAsyncIterator
    • ERROR_WHILE_MAPPING_MESSAGE
    • abortable
    • abortableAsyncIterable
    • abortablePromise
    • deadline
    • debounce
    • deferred
    • delay
    • pooledMap
  • bytes
    • concat
    • copy
    • startsWith
    • endsWith
    • equals
    • includesNeedle
    • indexOfNeedle
    • lastIndexOfNeedle
    • repeat
  • collections
  • crypto
  • datetime
  • dotenv
  • encoding
  • examples
  • flags
  • fmt
  • fs
  • hash
  • http
    • HttpError
    • Server
    • Status
    • errors
    • STATUS_TEXT
    • accepts
    • acceptsEncodings
    • acceptsLanguages
    • createHttpError
    • deleteCookie
    • getCookies
    • isClientErrorStatus
    • isErrorStatus
    • isHttpError
    • isInformationalStatus
    • isRedirectStatus
    • isServerErrorStatus
    • isSuccessfulStatus
    • serve
    • serveListener
    • serveTls
    • setCookie
    • ConnInfo
    • Cookie
    • HttpErrorOptions
    • ServeInit
    • ServerInit
    • ServeTlsInit
  • io
  • log
  • media_types
  • node
  • path
  • permissions
  • signal
  • streams
  • textproto
  • uuid
    • NIL_UUID
    • isNil
    • V1Options
    • v1.generate
    • v1.validate
    • v4.validate
    • v5.generate
    • v5.validate
  • wasi
  • version.ts
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Fable.Deno:

Package Downloads
Bix.Deno

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 544 7/17/2022