GithubHelp home page GithubHelp logo

angelmunoz / fable-deno Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 0.0 20 KB

Deno bindings for Fable applications

License: MIT License

F# 100.00%
deno fable fable-bindings fsharp import-maps importmaps

fable-deno's Introduction

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/[email protected]/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
    • 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

fable-deno's People

Contributors

angelmunoz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.