Skip to main content
Latest
import * as ptero from "https://deno.land/x/ptero@3.0/Ptero/deps.ts";

Namespaces

EJSON parse / stringify API

Classes

A class which registers middleware (via .use()) and then processes inbound requests against that middleware (via .listen()).

A class representation of the BSON Binary type.

A class representation of the BSON RegExp type.

A class representation of the BSON Symbol type.

A class representation of the BSON Code type.

A class representation of the BSON DBRef type.

A class representation of the BSON Decimal128 type.

A class representation of the BSON Double type.

A class representation of a BSON Int32 type.

A class representing a 64-bit integer

A class representation of the BSON MaxKey type.

A class representation of the BSON MinKey type.

A class representation of the BSON ObjectId type.

Provides context about the current request and response to middleware functions.

An interface for registering middleware that will run when certain HTTP methods and paths are requested, as well as provides a way to parameterize parts of the requested path.

Functions

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

Calculate the bson size for a passed in Javascript object.

Deserialize data as BSON.

Deserialize stream data as BSON documents.

Deserializes an Extended JSON object into a plain JavaScript object with native/BSON types

Parse an Extended JSON string, constructing the JavaScript value or object described by that string.

Serializes an object to an Extended JSON string, and reparse it as a JavaScript object.

Converts a BSON document to an Extended JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.

Serialize a Javascript object.

Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.

Sets the size of the internal serialization buffer.

Connect to Redis server

Takes a url string (for an already running Oak server), or an Oak Application object.