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

x/carol/deps.ts

A Deno port of carlo
Go to Latest
import * as carol from "https://deno.land/x/carol@v1.1.2/deps.ts";

Classes

A Browser is created when Puppeteer connects to a Chromium instance, either through PuppeteerNode.launch or Puppeteer.connect.

The CDPSession instances are used to talk raw Chrome Devtools Protocol.

The EventEmitter class that many Puppeteer classes extend.

Page provides methods to interact with a single tab or extension background page in Chromium.

Variables

v
BufReader
deprecated
v
readAll
deprecated
v
writeAll
deprecated

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Executes a function which returns a promise, expecting it to throw or reject. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it.

Make an assertion that actual and expected are strictly equal. If not then throw.

Make an assertion that actual includes expected. If not then throw.

Concatenate multiple binary arrays and return new one.

Shorthand for new TextDecoder().decode()

Decodes a given RFC4648 base64 encoded string

Creates a Promise with the reject and resolve functions placed as methods on the promise object itself. It allows you to do:

Shorthand for new TextEncoder().encode()

CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

f
exists
deprecated

Test whether or not the given path exists by checking with the file system

Forcefully throws a failed assertion