Fable.Deno 0.1.0

.NET 6.0
Install-Package Fable.Deno -Version 0.1.0
dotnet add package Fable.Deno --version 0.1.0
<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.
paket add Fable.Deno --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fable.Deno, 0.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Fable.Deno as a Cake Addin
#addin nuget:?package=Fable.Deno&version=0.1.0

// Install Fable.Deno as a Cake Tool
#tool nuget:?package=Fable.Deno&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
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 72 7/17/2022