Skip to main content
Module

x/carol/deps.ts

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

Classes

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

BufReader implements buffering for a Reader object.

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

Copyright 2020 Google Inc. All rights reserved.

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.

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

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

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.

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

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

Forcefully throws a failed assertion