Note: This is a work in progress. 🏗️🚧
Project Status: 🐲 Unstable, alpha-ish quality.
You need to be on at least a recent RC of ReScript v11.
npm i @tsirysndr/rescript-deno @rescript/core
Include them in your rescript.json
:
{ "bs-dependencies": ["@rescript/core", "@tsirysndr/rescript-deno"] }
rescript-deno
is namespaced, so you'll find all modules listed under the main module TsirysndrRescriptDeno
.
You're strongly encouraged to open TsirysndrRescriptDeno
globally, to get the best possible developer experience. You do that by adding this to your rescript.json
:
{ "bsc-flags": [ "-open TsirysndrRescriptDeno", "-open TsirysndrRescriptDeno.Globals", "-open RescriptCore" ] }
This might be a matter of taste, but I recommend opening it to get the best experience.
This will make all of Deno available to you without needing to dip into the TsirysndrRescriptDeno
module explicitly.
A Simple HTTP Server:
Deno.serveWithOptions({port: 8007}, ~handler=req => { Response.new(String("Hello, world!")) })->ignore
Make a request to a server:
let result = await fetch(String("https://rickandmortyapi.com/api/character")) Console.log(await result->Response.json)
See playground directory in this repo for more examples.
There's still a good amount of bindings missing. Here's what's currently available:
Contributions, issues and feature requests are welcome! See CONTRIBUTING.md for more info.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4