import * as clippy from "https://deno.land/x/clippy@v0.2.0/deps.ts";
A library of assertion functions.
This module is browser compatible, but do not rely on good formatting of values for AssertionError messages in browsers.
Namespaces
| |
N io | Utilities for working with Deno's readers, writers, and web streams. |
N path | Utilities for working with OS-specific file paths. |
Utilities for working with the Streams API. |
Classes
A variable-sized buffer of bytes with | |
BufReader implements buffering for a Reader object. | |
BufWriter implements buffering for an deno.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.Writer. | |
BufWriterSync implements buffering for a deno.WriterSync object. If an error occurs writing to a WriterSync, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.WriterSync. | |
A variable-sized buffer of bytes with | |
BufReader implements buffering for a Reader object. | |
BufWriter implements buffering for an deno.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.Writer. | |
BufWriterSync implements buffering for a deno.WriterSync object. If an error occurs writing to a WriterSync, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.WriterSync. | |
A | |
Reader utility for combining multiple readers | |
Reader utility for strings | |
Writer utility for buffering string chunks | |
A variable-sized buffer of bytes with | |
Transform a stream into a stream where each chunk is divided by a given delimiter. | |
A TransformStream that will only read & enqueue | |
A TransformStream that will only read & enqueue | |
Transform a stream into a stream where each chunk is divided by a given delimiter. | |
Transform a stream into a stream where each chunk is divided by a newline,
be it |
Functions
Make an assertion, error will be thrown if | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that actual is not null or undefined. If not then throw. | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Executes a function which returns a promise, expecting it to reject. | |
Make an assertion that | |
Make an assertion that actual includes expected. If not then throw. | |
Executes a function, expecting it to throw. If it does not, then it throws. | |
Decodes a given RFC4648 base64 encoded string | |
CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation | |
f copy | Copies from |
Deep equality comparison used in assertions | |
f fail | Forcefully throws a failed assertion |
Copy N size at the most. If read size is lesser than N, then returns nread | |
Read delimited bytes from a Reader. | |
Read big endian 32bit integer from BufReader | |
Read strings line-by-line from a Reader. | |
Read big endian 64bit long from BufReader | |
Read big endian 16bit short from BufReader | |
Read delimited strings from a Reader. | |
Slice number into 64bit big endian byte array | |
Turns a Reader, | |
Turns a ReaderSync, | |
Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator. | |
Convert a glob string to a regular expression. | |
Test whether the given string is a glob | |
Like join(), but doesn't collapse "**/.." when | |
Like normalize(), but doesn't collapse "**/.." when | |
Create a | |
Create a | |
Read Reader | |
Synchronously reads Reader | |
Read delimited bytes from a Reader. | |
Create a | |
Create a | |
Read strings line-by-line from a Reader. | |
Read delimited strings from a Reader. | |
Copies from | |
Merge multiple streams into a single one, taking order into account, and each stream will wait for a chunk to enqueue before the next stream can append another chunk. If a stream ends before other ones, the others will be cancelled. | |
Turns a Reader, | |
Turns a ReaderSync, | |
Merge multiple streams into a single one, not taking order into account. If a stream ends before other ones, the other will continue adding data, and the finished one will not add any more data. | |
Create a | |
Create a | |
Read Reader | |
Synchronously reads Reader | |
Create a | |
Create a | |
Convert the generator function into a TransformStream. | |
Create a | |
Write all the content of the array buffer ( | |
Synchronously write all the content of the array buffer ( | |
Create a | |
Merge multiple streams into a single one, taking order into account, and each stream will wait for a chunk to enqueue before the next stream can append another chunk. If a stream ends before other ones, the others will continue adding data in order, and the finished one will not add any more data. | |
Convert the generator function into a TransformStream. | |
Use this to stub out methods that will throw when invoked. | |
Use this to assert unreachable code. | |
Create a | |
Write all the content of the array buffer ( | |
Synchronously write all the content of the array buffer ( | |
Create a |
Interfaces
Result type returned by of BufReader.readLine(). | |
A parsed path object generated by path.parse() or consumed by path.format(). | |
Result type returned by of BufReader.readLine(). | |