This repository offers bindings for the Deno API and some bindings for the std lib.
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 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
- 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