Skip to content

flogjs/std

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flog Standard Library

This is the Flog standard library.

Modules

Console std/console

Implementation of WHATWG Console API.

Crypto std/crypto

Implementation of W3C Web Cryptography API.

Dyndef std/dyndef

Dynamic defensive programming as per own API.

Filesystem operations as per own API.

Functional std/function

Functional programming as per own API.

Implementation of a superset of WHATWG Fetch API.

Mathematical operations as per own API.

Streams std/streams

Implementation of WHATWG Streams API.

Runtime Compat

Runtime compat is a Flog standard library implementation for NodeJS. It is available on NPM as the runtime-compat package, and its exports correspond to Flog standard library modules, allowing for code reuse on both runtimes.

Flog

import {serve, Response} from "std/http";

serve(() => new Response("plain text", {status: 200}))

NodeJS

import {serve, Response} from "runtime-compat/http";

serve(() => new Response("plain text", {status: 200}))