import * as clippy from "https://deno.land/x/clippy@v0.2.2/deps.ts";
A library of assertion functions.
If the assertion is false an AssertionError
will be thrown which will
result in pretty-printed diff of failing assertion.
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. |
Classes
A variable-sized buffer of bytes with | |
A variable-sized buffer of bytes with | |
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. | |
Reader utility for combining multiple readers | |
Reader utility for strings. | |
Writer utility for buffering string chunks. |
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 a range of bytes from a file or other resource that is readable and seekable. The range start and end are inclusive of the bytes within that range. | |
Read a range of bytes synchronously from a file or other resource that is readable and seekable. The range start and end are inclusive of the bytes within that range. | |
Read big endian 16bit short from BufReader | |
Read Reader chunk by chunk, splitting based on delimiter. | |
Slice number into 64bit big endian byte array | |
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 | |
Read Reader | |
Use this to stub out methods that will throw when invoked. | |
Use this to assert unreachable code. |
Interfaces
Result type returned by of BufReader.readLine(). | |
A parsed path object generated by path.parse() or consumed by path.format(). |