Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/gauntlet/src/core/mod.ts

Work-in-progress front-end tool which does put a smile on my face
Latest
import * as gauntlet from "https://deno.land/x/gauntlet@v0.0.9/src/core/mod.ts";

Classes

Based on an AsyncIterator superset originally designed for graphqlade, the file watcher is intended to wrap asynchronously pushed events by the provided filesystem <FileSystemLike>.watch while .

Functions

Same as std/path.normalize, except it replaces all \ with /, and removes trailing slashes.

Naive unique ID generator

Same as String.prototype.replaceAll("\\", "/"), except it has better compatibility.

Takes an async iterator and returns an array

Takes an iterator and returns an array

Takes a string and returns an Uint8Array. Source: https://gist.github.com/NejcZdovc/447d730e0aada3771da7b88804d010f2

Interfaces

Base filesystem bindings

Base file watching event

Base events interface, designed for the EventEmitter<T> implementation from deno_events, should be used for fine-grained debugging and crash reporting.

Base file watching event

File watching event object

File watching events interface, designed for the EventEmitter<T> implementation from deno_events